summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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'};
}