aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mod/groups/upgrades/2011030101.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/mod/groups/upgrades/2011030101.php b/mod/groups/upgrades/2011030101.php
index 666ae3736..9ed5b321b 100644
--- a/mod/groups/upgrades/2011030101.php
+++ b/mod/groups/upgrades/2011030101.php
@@ -25,7 +25,7 @@ foreach ($topics as $topic) {
/**
- * Condense annotation into object
+ * Condense first annotation into object
*
* @param ElggObject $topic
*/
@@ -43,12 +43,14 @@ function groups_2011030101($topic) {
return $annotation[0]->delete();
}
+$previous_access = elgg_set_ignore_access(true);
$options = array(
'type' => 'object',
'subtype' => 'groupforumtopic',
'limit' => 0,
);
$batch = new ElggBatch('elgg_get_entities', $options, 'groups_2011030101', 100);
+elgg_set_ignore_access($previous_access);
if ($batch->callbackResult) {
error_log("Elgg Groups upgrade (2011030101) succeeded");