diff options
author | Brett Profitt <brett.profitt@gmail.com> | 2012-01-25 21:57:24 -0800 |
---|---|---|
committer | Brett Profitt <brett.profitt@gmail.com> | 2012-01-25 21:57:24 -0800 |
commit | d082021c2a344d677ac2f1e8806182c9501e8484 (patch) | |
tree | 46dad802e6533fc25c66abeaf38fcbe5d47969d8 /engine | |
parent | 4202d7d3087db4f503a7586a1f3fc824ebf45b30 (diff) | |
download | elgg-d082021c2a344d677ac2f1e8806182c9501e8484.tar.gz elgg-d082021c2a344d677ac2f1e8806182c9501e8484.tar.bz2 |
Refs #4081. Correctly calling setIncrementOffset(false) for deleting entities using ElggBatch.
Diffstat (limited to 'engine')
-rw-r--r-- | engine/lib/entities.php | 3 |
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); |