summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorTim Almdal <tnalmdal@shaw.ca>2009-12-16 10:14:31 -0800
committerTim Almdal <tnalmdal@shaw.ca>2009-12-16 10:14:31 -0800
commit61c1a8bfbe83a108adeb748fdba54df00d411db8 (patch)
tree045934ab474bfa03598688a54c9b2a0c2b726341 /modules
parent96968b41813498a6fe5dd01142126333454f6eda (diff)
Make sure we always return a children array for albums.
Diffstat (limited to 'modules')
-rw-r--r--modules/gallery/helpers/gallery_rest.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/gallery/helpers/gallery_rest.php b/modules/gallery/helpers/gallery_rest.php
index d3e2beba..5d4fcd45 100644
--- a/modules/gallery/helpers/gallery_rest.php
+++ b/modules/gallery/helpers/gallery_rest.php
@@ -48,7 +48,7 @@ class gallery_rest_Core {
"internet_address" => $item->slug);
$children = self::_get_children($item, $request);
- if (!empty($children)) {
+ if (!empty($children) || $item->is_album()) {
$response_data["children"] = $children;
}
return rest::success(array("resource" => $response_data));