Fix parameters to getImages()
authorChuck Hagenbuch <chuck@horde.org>
Mon, 2 Nov 2009 04:29:48 +0000 (23:29 -0500)
committerChuck Hagenbuch <chuck@horde.org>
Mon, 2 Nov 2009 04:29:48 +0000 (23:29 -0500)
ansel/lib/Tags.php

index 2c4fea1..ae2b85d 100644 (file)
@@ -519,7 +519,7 @@ class Ansel_Tags_Search {
                 return $iresults;
             }
 
-            $images = count($iresults['images']) ? array_values($GLOBALS['ansel_storage']->getImages($iresults['images'])) : array();
+            $images = count($iresults['images']) ? array_values($GLOBALS['ansel_storage']->getImages(array('ids' => $iresults['images']))) : array();
             if (($conf['comments']['allow'] == 'all' || ($conf['comments']['allow'] == 'authenticated' && Horde_Auth::getAuth())) &&
                 $registry->hasMethod('forums/numMessagesBatch')) {