diff options
-rw-r--r-- | engine/classes/ElggBatch.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/engine/classes/ElggBatch.php b/engine/classes/ElggBatch.php index 96a35f238..4f8f6cae9 100644 --- a/engine/classes/ElggBatch.php +++ b/engine/classes/ElggBatch.php @@ -172,6 +172,8 @@ class ElggBatch if ($callback && is_callable($callback)) { $batch = new ElggBatch($getter, $options, null, $chunk_size); + $all_results = null; + foreach ($batch as $result) { if (is_string($callback)) { $result = $callback($result, $getter, $options); |