Update classes

This commit is contained in:
DariusIII
2019-03-12 15:01:38 +01:00
parent 2de79fd094
commit 673cd1c1b3
9 changed files with 19 additions and 16 deletions
+1 -1
View File
@@ -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;
}