I've got some arrays showing up here causing problems. Not sure this is the right...
authorChuck Hagenbuch <chuck@horde.org>
Fri, 22 Oct 2010 01:55:18 +0000 (21:55 -0400)
committerChuck Hagenbuch <chuck@horde.org>
Fri, 22 Oct 2010 01:55:18 +0000 (21:55 -0400)
framework/Notification/lib/Horde/Notification/Handler.php

index 4901cad..cc7153e 100644 (file)
@@ -300,7 +300,8 @@ class Horde_Notification_Handler
                 $name = $instance->getName();
 
                 foreach (array_keys($unattached) as $val) {
-                    if ($instance->handles($unattached[$val]->type)) {
+                    if ($unattached[$val] instanceof Horde_Notification_Event
+                        && $instance->handles($unattached[$val]->type)) {
                         $this->_storage->push($name, $unattached[$val]);
                         unset($unattached[$val]);
                     }