diff options
| author | Tim Almdal <tnalmdal@shaw.ca> | 2010-08-16 21:54:40 -0700 |
|---|---|---|
| committer | Tim Almdal <tnalmdal@shaw.ca> | 2010-08-16 21:54:40 -0700 |
| commit | de91d0fe4f5764eae7902a4790c57cac635aa0be (patch) | |
| tree | fd4996f0c939187c6908689596400bd5e8814c0b /modules/gallery/helpers/items_rest.php | |
| parent | 9592f2f2e6dfff7f5a500b29511ba3bd23a0fa15 (diff) | |
| parent | 8c2ed0d681364837ab51b35d7aeb895b8adfa470 (diff) | |
Merge branch 'master' of git@github.com:gallery/gallery3
Diffstat (limited to 'modules/gallery/helpers/items_rest.php')
| -rw-r--r-- | modules/gallery/helpers/items_rest.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/gallery/helpers/items_rest.php b/modules/gallery/helpers/items_rest.php index 9cca9a54..f0b68d63 100644 --- a/modules/gallery/helpers/items_rest.php +++ b/modules/gallery/helpers/items_rest.php @@ -80,7 +80,7 @@ class items_rest_Core { "relationships" => rest::relationships("item", $item)); if ($item->type == "album") { $members = array(); - foreach ($item->children() as $child) { + foreach ($item->viewable()->children() as $child) { $members[] = rest::url("item", $child); } $item_rest["members"] = $members; |
