debug enter/leave_sub balanciert
[kivitendo-erp.git] / SL / Menu.pm
index 844e3f5..eac4e2f 100644 (file)
@@ -46,7 +46,10 @@ sub new {
 
   my ($type, $menufile) = @_;
 
-  return $instance if $instance;
+  if ($instance) {
+    $::lxdebug->leave_sub;
+    return $instance;
+  }
 
   my $self    = {};
   my $inifile = Inifile->new($menufile);