add evtype
authorAlan <alan@roojs.com>
Wed, 9 Aug 2023 09:49:33 +0000 (17:49 +0800)
committerAlan <alan@roojs.com>
Wed, 9 Aug 2023 09:49:33 +0000 (17:49 +0800)
Notify.php

index eacdb56..d1920fc 100644 (file)
@@ -192,6 +192,11 @@ class Pman_Core_Notify extends Pman
             }
             $w->server_id = array_search(gethostname(),array_keys($ff->Core_Notify['servers']));
         }
+        if (!empty($this->evtype)) {
+            $w->evtype = $this->evtype;
+        }
+        
+        
         
         if (!empty($opts['old'])) {
             // show old and new...
@@ -217,9 +222,6 @@ class Pman_Core_Notify extends Pman
             $w->limit($opts['limit']); // we can run 1000 ...
         }
         
-        if (!empty($this->evtype)) {
-            $w->evtype = $this->evtype;
-        }