From: Sven Schöling Date: Mon, 4 Jan 2010 14:37:43 +0000 (+0100) Subject: get_standard_dbh nimmt jetzt myconfig optional. default uf die globale. X-Git-Tag: release-2.6.2beta1~262 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=5548540b4fa7fc79fbab3ea000861f9a8c7c67e1;p=kivitendo-erp.git get_standard_dbh nimmt jetzt myconfig optional. default uf die globale. (das war so überfällig) --- diff --git a/SL/Form.pm b/SL/Form.pm index 6a5745b43..6d2ae4914 100644 --- a/SL/Form.pm +++ b/SL/Form.pm @@ -1580,7 +1580,8 @@ sub dbconnect_noauto { sub get_standard_dbh { $main::lxdebug->enter_sub(2); - my ($self, $myconfig) = @_; + my $self = shift; + my $myconfig = shift || \%::myconfig; if ($standard_dbh && !$standard_dbh->{Active}) { $main::lxdebug->message(LXDebug->INFO(), "get_standard_dbh: \$standard_dbh is defined but not Active anymore");