aboutsummaryrefslogtreecommitdiff
path: root/actions/edit.php
diff options
context:
space:
mode:
Diffstat (limited to 'actions/edit.php')
-rw-r--r--actions/edit.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/actions/edit.php b/actions/edit.php
index cca66941a..df65448c8 100644
--- a/actions/edit.php
+++ b/actions/edit.php
@@ -36,7 +36,12 @@ if ($subtype == 'album' && $entity->access_id != $access) {
$entity->access_id = $access;
//get images from album and update access on image entities
- $images = get_entities("object","image", $guid, '', 999, '', false);
+ $images = elgg_get_entities(array(
+ "type" => "object",
+ "subtype" => "image",
+ "container_guid" => $guid,
+ "limit" => ELGG_ENTITIES_NO_VALUE,
+ ));
foreach ($images as $im) {
$im->access_id = $access;
$im->save();