summaryrefslogtreecommitdiff
path: root/LedgerSMB
diff options
context:
space:
mode:
authoreinhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46>2006-11-14 04:40:17 +0000
committereinhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46>2006-11-14 04:40:17 +0000
commit1ac2c8b4fc96851bc9e37fdc3d1219cdddb72a35 (patch)
tree6b580d232be88331d1464e386370abbf069907eb /LedgerSMB
parent9c6ef0ef4ecb6f57ddeff31c487ab23655a880ed (diff)
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
Diffstat (limited to 'LedgerSMB')
-rwxr-xr-xLedgerSMB/User.pm3
1 files changed, 3 insertions, 0 deletions
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'};
}