diff options
author | Cash Costello <cash.costello@gmail.com> | 2012-01-09 18:53:19 -0500 |
---|---|---|
committer | Cash Costello <cash.costello@gmail.com> | 2012-01-09 18:53:19 -0500 |
commit | 66953a2148bb7a19ac79c1a4ccda2852ee87501e (patch) | |
tree | 5fceb3772a744181c5311aa157afb1a8c34aa276 /engine/classes/ElggBatch.php | |
parent | c4b49227819624b14b61e6eedbfa6779cd794d45 (diff) | |
download | elgg-66953a2148bb7a19ac79c1a4ccda2852ee87501e.tar.gz elgg-66953a2148bb7a19ac79c1a4ccda2852ee87501e.tar.bz2 |
coding standard fixes to engine
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; } } |