summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--common.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/common.pl b/common.pl
index b93b20e9..4bc27807 100644
--- a/common.pl
+++ b/common.pl
@@ -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);
}