From: Alan Date: Wed, 13 Sep 2023 09:55:57 +0000 (+0800) Subject: temporary fix to server routing X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=commitdiff_plain;h=24e3dd5ca557276e1468f7fb84a03f1ca3227d8e temporary fix to server routing --- 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']));