summaryrefslogtreecommitdiff
path: root/modules/gallery/helpers/gallery_rss.php
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2009-12-22 21:18:31 -0800
committerBharat Mediratta <bharat@menalto.com>2009-12-22 21:18:31 -0800
commitffca63235a53e8005d2f163efd97dbf69f8a1442 (patch)
tree6e38ff3b01e7edea29032463a1e161b69b7d2f6a /modules/gallery/helpers/gallery_rss.php
parent63fd9622c06e97e67e6dd11db00b12157924e6b8 (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.php2
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));