Skip to content

Commit

Permalink
Refs #4081. Correctly calling setIncrementOffset(false) for deleting …
Browse files Browse the repository at this point in the history
…entities using ElggBatch.
  • Loading branch information
brettp committed Jan 26, 2012
1 parent 4202d7d commit d082021
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion engine/lib/entities.php
Expand Up @@ -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);
Expand Down

0 comments on commit d082021

Please sign in to comment.