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

SF.net SVN: ledger-smb: [605] trunk/LedgerSMB/User.pm



Revision: 605
          http://svn.sourceforge.net/ledger-smb/?rev=605&view=rev
Author:   christopherm
Date:     2006-11-14 16:15:24 -0800 (Tue, 14 Nov 2006)

Log Message:
-----------
setting localhost as dbhost and 5432 as port if they are null

Modified Paths:
--------------
    trunk/LedgerSMB/User.pm

Modified: trunk/LedgerSMB/User.pm
===================================================================
--- trunk/LedgerSMB/User.pm	2006-11-15 00:08:36 UTC (rev 604)
+++ trunk/LedgerSMB/User.pm	2006-11-15 00:15:24 UTC (rev 605)
@@ -281,9 +281,16 @@
 
 	if ($form->{dbhost}) {
 		$form->{dbconnect} .= ";host=$form->{dbhost}";
+
+	} else {
+		$form->{dbconnect} .= ";host=localhost";
 	}
+
+
 	if ($form->{dbport}) {
 		$form->{dbconnect} .= ";port=$form->{dbport}";
+	} else {
+		$form->{dbconnect} .= ";port=5432";
 	}
   
 }


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