@@ -88,8 +88,9 @@ |
||
| 88 | 88 | protected function prepareQuery() |
| 89 | 89 | { |
| 90 | 90 | if (!$this->prepared) { |
| 91 | - if($this->totalRecords===null) |
|
| 92 | - $this->totalRecords = $this->totalCount(); |
|
| 91 | + if($this->totalRecords===null) { |
|
| 92 | + $this->totalRecords = $this->totalCount(); |
|
| 93 | + } |
|
| 93 | 94 | if ($this->totalRecords!==null) { |
| 94 | 95 | $this->filterRecords(); |
| 95 | 96 | $this->ordering(); |