From: Moritz Bunkus Date: Wed, 16 Feb 2011 14:16:21 +0000 (+0100) Subject: Rose-Datenbankverbindung: Wenn 'dbhost' leer ist, Fallback auf 'localhost' nutzen X-Git-Tag: release-2.6.3~77 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=fe68756cfbfd869d83067ff15d97f9a1b0ef5379;p=kivitendo-erp.git Rose-Datenbankverbindung: Wenn 'dbhost' leer ist, Fallback auf 'localhost' nutzen So ist es auch im Rest des Programms implementiert. --- diff --git a/SL/DB.pm b/SL/DB.pm index f90a9c637..67888ef59 100644 --- a/SL/DB.pm +++ b/SL/DB.pm @@ -65,7 +65,7 @@ sub _register_db { } elsif ($type eq 'LXOFFICE_AUTH') { %connect_settings = ( driver => $::myconfig{dbdriver} || 'Pg', database => $::auth->{DB_config}->{db}, - host => $::auth->{DB_config}->{host}, + host => $::auth->{DB_config}->{host} || 'localhost', port => $::auth->{DB_config}->{port} || 5432, username => $::auth->{DB_config}->{user}, password => $::auth->{DB_config}->{password}, @@ -79,7 +79,7 @@ sub _register_db { %connect_settings = ( driver => $::myconfig{dbdriver} || 'Pg', database => $::myconfig{dbname}, - host => $::myconfig{dbhost}, + host => $::myconfig{dbhost} || 'localhost', port => $::myconfig{dbport} || 5432, username => $::myconfig{dbuser}, password => $::myconfig{dbpasswd},