Fix logic
authorMichael J. Rubinsky <mrubinsk@horde.org>
Sat, 24 Oct 2009 17:48:46 +0000 (13:48 -0400)
committerMichael J. Rubinsky <mrubinsk@horde.org>
Sat, 24 Oct 2009 17:48:46 +0000 (13:48 -0400)
kronolith/lib/Event.php

index cee6da0..b67d908 100644 (file)
@@ -327,7 +327,8 @@ abstract class Kronolith_Event
             /* Get the resource and protect against infinite recursion in case
              * someone is silly enough to add a resource to it's own event.*/
             $resource = Kronolith::getDriver('Resource')->getResource($id);
-            if ($rcal = $resource->get('calendar') == $this->getCalendar()) {
+            $rcal = $resource->get('calendar');
+            if ($rcal == $this->getCalendar()) {
                 continue;
             }