From b106b30f584df8e1e0407f615ee90bb97fedb134 Mon Sep 17 00:00:00 2001 From: "Michael J. Rubinsky" Date: Mon, 6 Sep 2010 14:28:26 -0400 Subject: [PATCH] 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). --- ansel/lib/Image.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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.")); } -- 2.11.0