Tinebase ActionQueue - cli execute call passed job as array
[tine20] / tine20 / Calendar / Controller.php
index d440c73..2b58591 100644 (file)
@@ -408,13 +408,19 @@ class Calendar_Controller extends Tinebase_Controller_Event implements Tinebase_
      * send notifications 
      * 
      * @param Calendar_Model_Event       $_event
-     * @param Tinebase_Model_FullAccount $_updater
-     * @param Sting                      $_action
+     * @param Tinebase_Model_FullUser    $_updater
+     * @param String                     $_action
      * @param Calendar_Model_Event       $_oldEvent
      * @return void
      */
     public function sendEventNotifications($_event, $_updater, $_action, $_oldEvent = NULL)
     {
+        if (is_array($_event)) {
+            $_event = new Calendar_Model_Event($_event, true);
+        }
+        if (is_array($_oldEvent)) {
+            $_oldEvent = new Calendar_Model_Event($_oldEvent, true);
+        }
         Calendar_Controller_EventNotifications::getInstance()->doSendNotifications($_event, $_updater, $_action, $_oldEvent);
     }