From 425a59cc423cac7b96b8d5d6159a834e1aa6f648 Mon Sep 17 00:00:00 2001 From: "Michael J. Rubinsky" Date: Mon, 26 Jan 2009 18:47:54 -0500 Subject: [PATCH] Make sure these values are integers --- kronolith/lib/Tagger.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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); } /** -- 2.11.0