]> wagnertech.de Git - kivitendo-erp.git/blobdiff - SL/Form.pm
get_standard_dbh nimmt jetzt myconfig optional. default uf die globale.
[kivitendo-erp.git] / SL / Form.pm
index 6a5745b43894b51590a35acd3c9e15bf969dbc5f..6d2ae491414dd264a84fad73cb033ea14aacdaf2 100644 (file)
@@ -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");