aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/entities.php
diff options
context:
space:
mode:
Diffstat (limited to 'engine/lib/entities.php')
-rw-r--r--engine/lib/entities.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/engine/lib/entities.php b/engine/lib/entities.php
index c1ef683e5..ef03a698d 100644
--- a/engine/lib/entities.php
+++ b/engine/lib/entities.php
@@ -1532,7 +1532,8 @@ function delete_entity($guid, $recursive = true) {
'limit' => 0
);
- $batch = new ElggBatch('elgg_get_entities', $options, 50, false);
+ $batch = new ElggBatch('elgg_get_entities', $options);
+ $batch->setIncrementOffset(false);
foreach ($batch as $e) {
$e->delete(true);