From ace420da1e3ad3d23e3782a0f5d931bbb48fe01e Mon Sep 17 00:00:00 2001 From: DariusIII Date: Tue, 22 Jan 2019 11:04:49 +0100 Subject: [PATCH] Fix one more occurence of wrong data sent to search function --- Changelog | 1 + app/Http/Controllers/SearchController.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Changelog b/Changelog index 7b1282fc0..24f9c2eda 100755 --- a/Changelog +++ b/Changelog @@ -1,4 +1,5 @@ 2019-01-22 DariusIII + * Fix: Fix one more occurence of wrong data sent to search function * Chg: Log errors in PostProcessAdditional class 2019-01-21 DariusIII * Chg: Further improve results returned by search diff --git a/app/Http/Controllers/SearchController.php b/app/Http/Controllers/SearchController.php index 9548b9933..ebb26f1b7 100644 --- a/app/Http/Controllers/SearchController.php +++ b/app/Http/Controllers/SearchController.php @@ -152,7 +152,7 @@ class SearchController extends BasePageController config('nntmux.items_per_page'), $orderBy, -1, - $this->userdata['categoryexclusions'], + $this->userdata['categoryexclusions'] ?? [], 'advanced', [$searchVars['searchadvcat'] === '' ? -1 : $searchVars['searchadvcat']] );