From: Michael J. Rubinsky Date: Mon, 26 Jan 2009 23:47:54 +0000 (-0500) Subject: Make sure these values are integers X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=425a59cc423cac7b96b8d5d6159a834e1aa6f648;p=horde.git Make sure these values are integers --- diff --git a/kronolith/lib/Tagger.php b/kronolith/lib/Tagger.php index 079565042..ca58b4f0a 100644 --- a/kronolith/lib/Tagger.php +++ b/kronolith/lib/Tagger.php @@ -38,7 +38,7 @@ class Kronolith_Tagger { self::$_tagger = new Content_Tagger($context); $types = $type_mgr->ensureTypes(array('calendar', 'event')); - self::$_type_ids = array('calendar' => $types[0], 'event' => $types[1]); + self::$_type_ids = array('calendar' => (int)$types[0], 'event' => (int)$types[1]); } } @@ -71,13 +71,13 @@ class Kronolith_Tagger { foreach ($localId as $id) { $tags = $tags + self::$_tagger->getTags(array('objectId' => array('object' => $id, 'type' => $type))); } -var_dump($tags); + return $tags; } public function untag($localId, $tag, $content_type = 'event') { - //self::$_tagger-> + self::$_tagger->removeTagFromObject(array('object' => $localId, 'type' => $content_type), $tag); } /**