From: Michael J. Rubinsky Date: Thu, 27 May 2010 21:50:50 +0000 (-0400) Subject: Use the type_id since we already have it, avoid unnecessary db hits. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=36499fa946daef28dcc62c83731b70d2ef272ac0;p=horde.git Use the type_id since we already have it, avoid unnecessary db hits. --- diff --git a/kronolith/lib/Tagger.php b/kronolith/lib/Tagger.php index 1733d9369..8091d263f 100644 --- a/kronolith/lib/Tagger.php +++ b/kronolith/lib/Tagger.php @@ -81,7 +81,7 @@ class Kronolith_Tagger } $tags = array(); foreach ($localId as $id) { - $tags = $tags + $this->_tagger->getTags(array('objectId' => array('object' => $id, 'type' => $type))); + $tags = $tags + $this->_tagger->getTags(array('objectId' => array('object' => $id, 'type' => $this->_type_ids[$type]))); } return $tags;