From 2f8b351bf71cd4a811e1f3c52199d19ba256c2dc Mon Sep 17 00:00:00 2001 From: Chuck Hagenbuch Date: Tue, 14 Sep 2010 16:05:29 -0400 Subject: [PATCH] Have to pass $ids to getCol() --- jonah/lib/Driver/Sql.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- 2.11.0