From f902ac8fd0cc328b8b663c8a0516081f0e5b181c Mon Sep 17 00:00:00 2001 From: "Michael J. Rubinsky" Date: Sat, 24 Oct 2009 13:40:53 -0400 Subject: [PATCH] Fix obtaining resource id --- kronolith/lib/Event.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kronolith/lib/Event.php b/kronolith/lib/Event.php index da5caf003..cee6da0d3 100644 --- a/kronolith/lib/Event.php +++ b/kronolith/lib/Event.php @@ -1637,8 +1637,8 @@ abstract class Kronolith_Event */ function removeResource($resource) { - if (isset($this->_resources[$resource->id])) { - unset ($this->_resources[$resource->id]); + if (isset($this->_resources[$resource->getId()])) { + unset ($this->_resources[$resource->getId()]); } } -- 2.11.0