]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
Refs #4081. Correctly calling setIncrementOffset(false) for deleting entities using...
authorBrett Profitt <brett.profitt@gmail.com>
Thu, 26 Jan 2012 05:57:24 +0000 (21:57 -0800)
committerBrett Profitt <brett.profitt@gmail.com>
Thu, 26 Jan 2012 05:57:24 +0000 (21:57 -0800)
engine/lib/entities.php

index c1ef683e586f1ea8d937c616d7e342a1c1d1fdbe..ef03a698dd5d8655505e6063f596544f5e210e7e 100644 (file)
@@ -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);