diff --git a/Changelog b/Changelog index fa1d6a887..150f444d0 100755 --- a/Changelog +++ b/Changelog @@ -1,4 +1,5 @@ 2019-01-21 DariusIII + * Fix: Fix error on search with argument 16 not being an array but null * Chg: Update czproject/git-php (v3.16.0 => v3.16.1) * Fix: Fix issues reported by scrutinizer (strings where arrays are expected and vice versa) * Chg: Update search, update matching diff --git a/app/Http/Controllers/SearchController.php b/app/Http/Controllers/SearchController.php index 085a0c89e..9548b9933 100644 --- a/app/Http/Controllers/SearchController.php +++ b/app/Http/Controllers/SearchController.php @@ -86,7 +86,7 @@ class SearchController extends BasePageController config('nntmux.items_per_page'), $orderBy, -1, - $this->userdata['categoryexclusions'], + $this->userdata['categoryexclusions'] ?? [], 'basic', $categoryID, 0,