Have to pass $ids to getCol()
authorChuck Hagenbuch <chuck@horde.org>
Tue, 14 Sep 2010 20:05:29 +0000 (16:05 -0400)
committerChuck Hagenbuch <chuck@horde.org>
Tue, 14 Sep 2010 20:05:29 +0000 (16:05 -0400)
jonah/lib/Driver/Sql.php

index 2eb2918..6454359 100644 (file)
@@ -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);
         }