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

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



Revision: 580
          http://svn.sourceforge.net/ledger-smb/?rev=580&view=rev
Author:   einhverfr
Date:     2006-11-13 20:40:17 -0800 (Mon, 13 Nov 2006)

Log Message:
-----------
Localhost is now the default when creating new users

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

Modified: trunk/LedgerSMB/User.pm
===================================================================
--- trunk/LedgerSMB/User.pm	2006-11-14 04:35:51 UTC (rev 579)
+++ trunk/LedgerSMB/User.pm	2006-11-14 04:40:17 UTC (rev 580)
@@ -146,6 +146,9 @@
 			$myconfig{'dbport'} = '5432';
 		}
 
+		if (! $myconfig{'dbhost'}){ # necessary to avoid many issues
+			$myconfig{'dbhost'} = 'localhost';
+		}
 		$myconfig{'login'} = $login;
 		$myconfig{'dbconnect'} = 'dbi:Pg:dbname='.$myconfig{'dbname'}.';host='.$myconfig{'dbhost'}.';port='.$myconfig{'dbport'};
 	}


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