diff options
author | christopherm <christopherm@4979c152-3d1c-0410-bac9-87ea11338e46> | 2006-11-15 00:15:24 +0000 |
---|---|---|
committer | christopherm <christopherm@4979c152-3d1c-0410-bac9-87ea11338e46> | 2006-11-15 00:15:24 +0000 |
commit | 7be9a4a425f22ea6d45b79eeab6ab213b1903251 (patch) | |
tree | 86f77ca3d50192f287d67813f614abb433435b5c /LedgerSMB | |
parent | d1cba0d7c00d2deb57ae523839da946f5506f5ee (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
Diffstat (limited to 'LedgerSMB')
-rwxr-xr-x | LedgerSMB/User.pm | 7 |
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"; } } |