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
@@ -39,7 +39,7 @@ class ConsoleController extends BasePageController
if ($id && \in_array($id, Arr::pluck($ctmp, 'title'), false)) {
$cat = Category::query()
->where('title', $id)
->where('parentid', '=', Category::GAME_ROOT)
->where('root_categories_id', '=', Category::GAME_ROOT)
->first(['id']);
$category = $cat !== null ? $cat['id'] : Category::GAME_ROOT;
}