mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-31 18:28:54 +00:00
Update classes
This commit is contained in:
@@ -35,7 +35,7 @@ class BooksController extends BasePageController
|
||||
if ($id && \in_array($id, Arr::pluck($btmp, 'title'), false)) {
|
||||
$cat = Category::query()
|
||||
->where('title', $id)
|
||||
->where('parentid', '=', Category::BOOKS_ROOT)
|
||||
->where('root_categories_id', '=', Category::BOOKS_ROOT)
|
||||
->first(['id']);
|
||||
$category = $cat !== null ? $cat['id'] : Category::BOOKS_ROOT;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user