DataObjects/Core_notify_server.php
authorAlan <alan@roojs.com>
Mon, 9 Oct 2023 05:50:24 +0000 (13:50 +0800)
committerAlan <alan@roojs.com>
Mon, 9 Oct 2023 05:50:24 +0000 (13:50 +0800)
DataObjects/Core_notify_server.php

index 655c1e5..59b5a76 100644 (file)
@@ -92,7 +92,7 @@ class Pman_Core_DataObjects_Core_notify_server extends DB_DataObject
                     and
                     act_start < NOW() +  INTERVAL 3 HOUR 
                     and
-                    server_id < 0
+                    server_id != {$ids[0]}
             ");
             return;
         }
@@ -109,9 +109,8 @@ class Pman_Core_DataObjects_Core_notify_server extends DB_DataObject
                 and
                 act_start < NOW() +  INTERVAL 3 HOUR 
                 and
-                server_id < 0"
-            
-        );
+                server_id NOT IN (" . implode(",", $ids) . ")
+        ");
         if ($p->count() < 1) {
             return;
         }