From 1ac2c8b4fc96851bc9e37fdc3d1219cdddb72a35 Mon Sep 17 00:00:00 2001 From: einhverfr Date: Tue, 14 Nov 2006 04:40:17 +0000 Subject: Localhost is now the default when creating new users git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/trunk@580 4979c152-3d1c-0410-bac9-87ea11338e46 --- LedgerSMB/User.pm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/LedgerSMB/User.pm b/LedgerSMB/User.pm index 834c9ee4..fde8463b 100755 --- a/LedgerSMB/User.pm +++ b/LedgerSMB/User.pm @@ -146,6 +146,9 @@ sub fetch_config { $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'}; } -- cgit v1.2.3