summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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));