From: Michael J. Rubinsky Date: Mon, 6 Sep 2010 18:28:26 +0000 (-0400) Subject: Ensure this value is a string. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=b106b30f584df8e1e0407f615ee90bb97fedb134;p=horde.git Ensure this value is a string. The tagger needs the local id as a string or it assumes it's a rampage object id (which it will never be here). --- diff --git a/ansel/lib/Image.php b/ansel/lib/Image.php index e4497689e..fbbb218d6 100644 --- a/ansel/lib/Image.php +++ b/ansel/lib/Image.php @@ -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.")); }