From: Brett Profitt Date: Thu, 26 Jan 2012 05:57:24 +0000 (-0800) Subject: Refs #4081. Correctly calling setIncrementOffset(false) for deleting entities using... X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=d082021c2a344d677ac2f1e8806182c9501e8484;p=lorea%2Felgg.git Refs #4081. Correctly calling setIncrementOffset(false) for deleting entities using ElggBatch. --- 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);