From: Alan Date: Wed, 9 Aug 2023 09:46:41 +0000 (+0800) Subject: fix the count X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=commitdiff_plain;h=93f5a1b460d08915153bed0cff92af308847b983 fix the count --- diff --git a/Notify.php b/Notify.php index 001a7a4f..eacdb56a 100644 --- a/Notify.php +++ b/Notify.php @@ -183,6 +183,16 @@ class Pman_Core_Notify extends Pman $w = DB_DataObject::factory($this->table); $total = 0; + + + $ff = HTML_FlexyFramework::get(); + if (!empty($ff->Core_Notify['servers'])) { + 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'])); + } + if (!empty($opts['old'])) { // show old and new... @@ -211,13 +221,6 @@ class Pman_Core_Notify extends Pman $w->evtype = $this->evtype; } - $ff = HTML_FlexyFramework::get(); - if (!empty($ff->Core_Notify['servers'])) { - 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'])); - }