From e0e882baabe9d4436c12bd57f903159c3b0274d9 Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Thu, 26 Nov 2009 19:25:09 -0800 Subject: Fix the arguments to Item_Model::descendants_count() --- modules/slideshow/helpers/slideshow_event.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/slideshow') diff --git a/modules/slideshow/helpers/slideshow_event.php b/modules/slideshow/helpers/slideshow_event.php index 0afe8126..9b77dd42 100644 --- a/modules/slideshow/helpers/slideshow_event.php +++ b/modules/slideshow/helpers/slideshow_event.php @@ -32,7 +32,7 @@ class slideshow_event_Core { static function album_menu($menu, $theme) { $descendants_count = ORM::factory("item", $theme->item()->id) - ->descendants_count(array("type" => "photo")); + ->descendants_count(array(array("type", "=", "photo"))); if ($descendants_count > 1) { $menu->append(Menu::factory("link") ->id("slideshow") -- cgit v1.2.3