From: Michael J. Rubinsky Date: Sat, 24 Oct 2009 17:48:46 +0000 (-0400) Subject: Fix logic X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=bf7d248b9f3f36b3b22a99557282373e9043fe7e;p=horde.git Fix logic --- diff --git a/kronolith/lib/Event.php b/kronolith/lib/Event.php index cee6da0d3..b67d90837 100644 --- a/kronolith/lib/Event.php +++ b/kronolith/lib/Event.php @@ -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; }