summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorchristopherm <christopherm@4979c152-3d1c-0410-bac9-87ea11338e46>2006-11-15 00:15:24 +0000
committerchristopherm <christopherm@4979c152-3d1c-0410-bac9-87ea11338e46>2006-11-15 00:15:24 +0000
commit7be9a4a425f22ea6d45b79eeab6ab213b1903251 (patch)
tree86f77ca3d50192f287d67813f614abb433435b5c
parentd1cba0d7c00d2deb57ae523839da946f5506f5ee (diff)
setting localhost as dbhost and 5432 as port if they are null
git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/trunk@605 4979c152-3d1c-0410-bac9-87ea11338e46
-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";
}
}