From dd15b255adb9cc35b00d83b29d3b2ee0df69eeaa Mon Sep 17 00:00:00 2001 From: Alan Date: Wed, 11 Oct 2023 11:33:53 +0800 Subject: [PATCH] check server id --- NotifySend.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/NotifySend.php b/NotifySend.php index e7fa445b..bcc644e1 100644 --- a/NotifySend.php +++ b/NotifySend.php @@ -110,7 +110,9 @@ class Pman_Core_NotifySend extends Pman } $this->server = DB_DataObject::Factory('core_notify_server')->getCurrent($this); - + if (!$force && $w->server_id != $this->server_id) { + $this->errorHandler("Server id does not match - use force to try again\n"); + } if (!empty($opts['debug'])) { print_r($w); -- 2.39.2