projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
5320b89
)
fix the count
author
Alan
<alan@roojs.com>
Wed, 9 Aug 2023 09:46:41 +0000
(17:46 +0800)
committer
Alan
<alan@roojs.com>
Wed, 9 Aug 2023 09:46:41 +0000
(17:46 +0800)
Notify.php
patch
|
blob
|
history
diff --git
a/Notify.php
b/Notify.php
index
001a7a4
..
eacdb56
100644
(file)
--- a/
Notify.php
+++ b/
Notify.php
@@
-183,6
+183,16
@@
class Pman_Core_Notify extends Pman
$w = DB_DataObject::factory($this->table);
$total = 0;
$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...
if (!empty($opts['old'])) {
// show old and new...
@@
-211,13
+221,6
@@
class Pman_Core_Notify extends Pman
$w->evtype = $this->evtype;
}
$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']));
- }