[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

SF.net SVN: ledger-smb: [551] trunk/common.pl



Revision: 551
          http://svn.sourceforge.net/ledger-smb/?rev=551&view=rev
Author:   einhverfr
Date:     2006-11-12 20:49:12 -0800 (Sun, 12 Nov 2006)

Log Message:
-----------
Fixing redirect for  admin.pl

Modified Paths:
--------------
    trunk/common.pl

Modified: trunk/common.pl
===================================================================
--- trunk/common.pl	2006-11-13 04:18:10 UTC (rev 550)
+++ trunk/common.pl	2006-11-13 04:49:12 UTC (rev 551)
@@ -56,7 +56,7 @@
 	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);
 	}
 


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.