Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fix the arguments to Item_Model::descendants_count()

  • Loading branch information...
commit e0e882baabe9d4436c12bd57f903159c3b0274d9 1 parent 9fd6a0a
Bharat Mediratta authored November 26, 2009
2  modules/slideshow/helpers/slideshow_event.php
@@ -32,7 +32,7 @@ static function module_change($changes) {
32 32
 
33 33
   static function album_menu($menu, $theme) {
34 34
     $descendants_count = ORM::factory("item", $theme->item()->id)
35  
-      ->descendants_count(array("type" => "photo"));
  35
+      ->descendants_count(array(array("type", "=", "photo")));
36 36
     if ($descendants_count > 1) {
37 37
       $menu->append(Menu::factory("link")
38 38
                     ->id("slideshow")

0 notes on commit e0e882b

Please sign in to comment.
Something went wrong with that request. Please try again.