summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2009-11-26 19:25:09 -0800
committerBharat Mediratta <bharat@menalto.com>2009-11-26 19:25:09 -0800
commite0e882baabe9d4436c12bd57f903159c3b0274d9 (patch)
tree8bf5cb90a254b74c5adb722a6852ced7e3b581d8
parent9fd6a0a63e95f1fd73e0ebb224c1c1dd30686858 (diff)
Fix the arguments to Item_Model::descendants_count()
-rw-r--r--modules/slideshow/helpers/slideshow_event.php2
1 files changed, 1 insertions, 1 deletions
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")