DataObjects/Core_notify_server.php
authorAlan <alan@roojs.com>
Thu, 5 Oct 2023 08:59:33 +0000 (16:59 +0800)
committerAlan <alan@roojs.com>
Thu, 5 Oct 2023 08:59:33 +0000 (16:59 +0800)
DataObjects/Core_notify_server.php

index 0eb8699..1d4bb2d 100644 (file)
@@ -109,14 +109,9 @@ class Pman_Core_DataObjects_Core_notify_server extends DB_DataObject
         $ns->is_active = 1;
         $ns->hostname = gethostname();
         if (!$ns->count()) {
-            $notify->jerr()
+            $notify->jerr("Server not found for this server " .  gethostname() . " in core_notify_server" );
         }
-      if (!empty($ff->Core_Notify['servers']) && empty($ff->Core_Notify['servers-non-pool'][gethostname()])) {
-            
-            if (!isset($ff->Core_Notify['servers'][gethostname()])) {
-                $this->jerr("Core_Notify['servers']['" . gethostname() ."'] is not set");
-            }
-            $w->server_id = array_search(gethostname(),array_keys($ff->Core_Notify['servers']));
-        }
-    
+        $ns->find(true);
+        return $ns;
+      
 }
\ No newline at end of file