]> wagnertech.de Git - kivitendo-erp.git/blobdiff - SL/Watchdog.pm
Fälschlicherweise gemergeten Code entfernt.
[kivitendo-erp.git] / SL / Watchdog.pm
index 9001b1b32d395b241118a6d4bc81c4b289121ec1..180d364c741361ff930f44d3ff1e6e315a16218b 100644 (file)
@@ -13,14 +13,16 @@ sub STORE {
 
   if (substr($key, 0, 10) eq "Watchdog::") {
     substr $key, 0, 10, "";
-    $watched_variables{$key} = $value;
-    if ($value) {
-      $main::lxdebug->_write("WATCH", "Starting to watch '$key' with current value '$this->{$key}'");
-    } else {
-      $main::lxdebug->_write("WATCH", "Stopping to watch '$key'");
+    foreach $key (split m/[ ,]/, $key) {
+      $watched_variables{$key} = $value;
+      if ($value) {
+        $main::lxdebug->_write("WATCH", "Starting to watch '$key' with current value '$this->{$key}'");
+      } else {
+        $main::lxdebug->_write("WATCH", "Stopping to watch '$key'");
+      }
     }
-    return;
 
+    return;
   }
 
   if ($watched_variables{$key}