From bf7d248b9f3f36b3b22a99557282373e9043fe7e Mon Sep 17 00:00:00 2001 From: "Michael J. Rubinsky" Date: Sat, 24 Oct 2009 13:48:46 -0400 Subject: [PATCH] Fix logic --- kronolith/lib/Event.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; } -- 2.11.0