diff options
-rw-r--r-- | common.pl | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -56,7 +56,7 @@ sub redirect { if (!$myconfig){ # needed for login %myconfig = %{LedgerSMB::User->fetch_config($form->{login})}; } - if (!$form->{dbh}){ + if (!$form->{dbh} and ($script ne 'admin.pl')){ $form->db_init(\%myconfig); } |