From fe68756cfbfd869d83067ff15d97f9a1b0ef5379 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Wed, 16 Feb 2011 15:16:21 +0100 Subject: [PATCH] Rose-Datenbankverbindung: Wenn 'dbhost' leer ist, Fallback auf 'localhost' nutzen So ist es auch im Rest des Programms implementiert. --- SL/DB.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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}, -- 2.20.1