summaryrefslogtreecommitdiff
path: root/LedgerSMB
diff options
context:
space:
mode:
Diffstat (limited to 'LedgerSMB')
-rwxr-xr-xLedgerSMB/User.pm7
1 files changed, 7 insertions, 0 deletions
diff --git a/LedgerSMB/User.pm b/LedgerSMB/User.pm
index fde8463b..1427ad53 100755
--- a/LedgerSMB/User.pm
+++ b/LedgerSMB/User.pm
@@ -281,9 +281,16 @@ sub dbconnect_vars {
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";
}
}