diff options
Diffstat (limited to 'engine/classes/ElggBatch.php')
| -rw-r--r-- | engine/classes/ElggBatch.php | 8 | 
1 files changed, 3 insertions, 5 deletions
diff --git a/engine/classes/ElggBatch.php b/engine/classes/ElggBatch.php index 2a97f9ff5..3d01133fa 100644 --- a/engine/classes/ElggBatch.php +++ b/engine/classes/ElggBatch.php @@ -236,13 +236,11 @@ class ElggBatch  			}  			// if original limit < chunk size, set limit to original limit +			// else if the number of results we'll fetch if greater than the original limit  			if ($this->limit < $this->chunkSize) {  				$limit = $this->limit; -			} - -			// if the number of results we'll fetch is greater than the original limit, -			// set the limit to the number of results remaining in the original limit -			elseif ($this->retrievedResults + $this->chunkSize > $this->limit) { +			} elseif ($this->retrievedResults + $this->chunkSize > $this->limit) { +				// set the limit to the number of results remaining in the original limit  				$limit = $this->limit - $this->retrievedResults;  			}  		}  | 
