Ensure this value is a string.
authorMichael J. Rubinsky <mrubinsk@horde.org>
Mon, 6 Sep 2010 18:28:26 +0000 (14:28 -0400)
committerMichael J. Rubinsky <mrubinsk@horde.org>
Mon, 6 Sep 2010 18:28:26 +0000 (14:28 -0400)
The tagger needs the local id as a string or it assumes it's a
rampage object id (which it will never be here).

ansel/lib/Image.php

index e449768..fbbb218 100644 (file)
@@ -1138,7 +1138,7 @@ class Ansel_Image Implements Iterator
         if ($gallery->hasPermission($GLOBALS['registry']->getAuth(), Horde_Perms::EDIT)) {
             // Clear the local cache.
             $this->_tags = array();
-            $GLOBALS['injector']->getInstance('Ansel_Tagger')->tag($this->id, $tags, $gallery->get('owner'), 'image');
+            $GLOBALS['injector']->getInstance('Ansel_Tagger')->tag((string)$this->id, $tags, $gallery->get('owner'), 'image');
         } else {
             throw new Horde_Exception_PermissionDenied(_("Access denied adding tags to this photo."));
         }