diff options
author | Bharat Mediratta <bharat@menalto.com> | 2009-12-22 21:18:31 -0800 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2009-12-22 21:18:31 -0800 |
commit | ffca63235a53e8005d2f163efd97dbf69f8a1442 (patch) | |
tree | 6e38ff3b01e7edea29032463a1e161b69b7d2f6a /modules/gallery/helpers/gallery_rss.php | |
parent | 63fd9622c06e97e67e6dd11db00b12157924e6b8 (diff) |
Fix where tuple sent to descendant_counts() -- it needs to be wrapped in an array
Diffstat (limited to 'modules/gallery/helpers/gallery_rss.php')
-rw-r--r-- | modules/gallery/helpers/gallery_rss.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/gallery/helpers/gallery_rss.php b/modules/gallery/helpers/gallery_rss.php index 4aef27ad..d422636f 100644 --- a/modules/gallery/helpers/gallery_rss.php +++ b/modules/gallery/helpers/gallery_rss.php @@ -51,7 +51,7 @@ class gallery_rss_Core { ->viewable() ->descendants($limit, $offset, array(array("type", "=", "photo"))); $feed->max_pages = ceil( - $item->viewable()->descendants_count(array("type", "=", "photo")) / $limit); + $item->viewable()->descendants_count(array(array("type", "=", "photo"))) / $limit); $feed->title = html::purify($item->title); $feed->description = nl2br(html::purify($item->description)); |