Skip to content

Commit ee955c5

Browse files
georgmaisseribernhardf
authored andcommitted
Add some comments
1 parent a3a49f8 commit ee955c5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

classes/wunderbyte_table.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1023,9 +1023,13 @@ public function query_db_cached($pagesize, $useinitialsbar = true) {
10231023
|| (
10241024
// Rawdata must be bigger than 0 on the second run, else we simply ran out of records.
10251025
count($unfilteredrawdata) == $pagesize
1026+
// If we don't use pages, we don't need to repeat.
10261027
&& $usepages
1028+
// If we don't have a pagesize, we don't need to repeat.
10271029
&& $this->pagesize > 0
1030+
// If we have less records than the pagesize, we don't need to repeat.
10281031
&& (count($this->rawdata) < $this->pagesize)
1032+
// If we have less total records than the pagesize times curr page, we don't need to repeat.
10291033
&& ($this->totalrows > ($this->currpage * $this->pagesize))
10301034
)
10311035
) {

0 commit comments

Comments
 (0)