temporary fix to server routing
authorAlan <alan@roojs.com>
Wed, 13 Sep 2023 09:55:57 +0000 (17:55 +0800)
committerAlan <alan@roojs.com>
Wed, 13 Sep 2023 09:55:57 +0000 (17:55 +0800)
DataObjects/Core_notify.php
NotifySend.php

index 91cc0a1..8c0e628 100644 (file)
@@ -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
     
index f554bf3..07c1e9f 100644 (file)
@@ -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']));