mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-29 01:08:56 +00:00
Re-use old code and fix _totalrows and _totalcount insertion into existing array/object
This commit is contained in:
@@ -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(
|
||||
[
|
||||
|
||||
Reference in New Issue
Block a user