summaryrefslogtreecommitdiff
path: root/common.pl
diff options
context:
space:
mode:
Diffstat (limited to 'common.pl')
-rw-r--r--common.pl4
1 files changed, 2 insertions, 2 deletions
diff --git a/common.pl b/common.pl
index dc5684a5..2755dee7 100644
--- a/common.pl
+++ b/common.pl
@@ -48,20 +48,20 @@ sub redirect {
undef $form;
$form = new Form($argv);
- require "bin/$script";
for (@common_attrs) {
$form->{$_} = $temphash{$_};
}
$form->{script} = $script;
- if ( !$myconfig ) { # needed for login
+ if ( !%myconfig ) { # needed for login
%myconfig = %{ LedgerSMB::User->fetch_config( $form->{login} ) };
}
if ( !$form->{dbh} and ( $script ne 'admin.pl' ) ) {
$form->db_init( \%myconfig );
}
+ require "bin/$script";
&{ $form->{action} };
}