Re-use old code and fix _totalrows and _totalcount insertion into existing array/object

This commit is contained in:
DariusIII
2018-05-21 10:35:09 +02:00
parent 296d1bf936
commit 5231f0c82f
19 changed files with 100 additions and 73 deletions
+1 -1
View File
@@ -86,7 +86,7 @@ class SearchController extends BasePageController
$categoryID
);
$results = $this->paginate($rslt ?? [], $rslt['_totalrows'] ?? 0, config('nntmux.items_per_page'), $page, $request->url(), $request->query());
$results = $this->paginate($rslt ?? [], $rslt[0]->_totalrows ?? 0, config('nntmux.items_per_page'), $page, $request->url(), $request->query());
$this->smarty->assign(
[