From: Chuck Hagenbuch Date: Tue, 14 Sep 2010 20:05:29 +0000 (-0400) Subject: Have to pass $ids to getCol() X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=2f8b351bf71cd4a811e1f3c52199d19ba256c2dc;p=horde.git Have to pass $ids to getCol() --- diff --git a/jonah/lib/Driver/Sql.php b/jonah/lib/Driver/Sql.php index 2eb29184f..64543597d 100644 --- a/jonah/lib/Driver/Sql.php +++ b/jonah/lib/Driver/Sql.php @@ -850,7 +850,7 @@ class Jonah_Driver_Sql extends Jonah_Driver public function getTagNames($ids) { $sql = 'SELECT t.tag_name FROM jonah_tags as t WHERE t.tag_id IN(' . str_repeat('?,', count($ids) - 1) . '?)'; - $tags = $this->_db->getCol($sql); + $tags = $this->_db->getCol($sql, 0, $ids); if ($tags instanceof PEAR_Error) { throw new Jonah_Exception($tags); }