From 24e3dd5ca557276e1468f7fb84a03f1ca3227d8e Mon Sep 17 00:00:00 2001 From: Alan Date: Wed, 13 Sep 2023 17:55:57 +0800 Subject: [PATCH] temporary fix to server routing --- DataObjects/Core_notify.php | 2 +- NotifySend.php | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/DataObjects/Core_notify.php b/DataObjects/Core_notify.php index 91cc0a18..8c0e6282 100644 --- a/DataObjects/Core_notify.php +++ b/DataObjects/Core_notify.php @@ -44,7 +44,7 @@ class Pman_Core_DataObjects_Core_notify extends DB_DataObject public $act_start; public $person_table; public $to_email; - + /* the code above is auto generated do not remove the tag below */ ###END_AUTOCODE diff --git a/NotifySend.php b/NotifySend.php index f554bf38..07c1e9ff 100644 --- a/NotifySend.php +++ b/NotifySend.php @@ -710,6 +710,10 @@ class Pman_Core_NotifySend extends Pman if (empty($ff->Core_Notify['servers'])) { return; } + // some classes dont support server routing + if (!property_exists($w, 'server_id')) { + return; + } // next server.. $w->server_id = ($w->server_id + 1) % count(array_keys($ff->Core_Notify['servers'])); -- 2.39.2