Fix obtaining resource id
authorMichael J. Rubinsky <mrubinsk@horde.org>
Sat, 24 Oct 2009 17:40:53 +0000 (13:40 -0400)
committerMichael J. Rubinsky <mrubinsk@horde.org>
Sat, 24 Oct 2009 17:40:53 +0000 (13:40 -0400)
kronolith/lib/Event.php

index da5caf0..cee6da0 100644 (file)
@@ -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()]);
         }
     }