$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