From e77411311064577cdc1c3c2008908a0c3ed866c0 Mon Sep 17 00:00:00 2001 From: Valentin Lab Date: Mon, 9 Feb 2026 05:00:00 +0100 Subject: [PATCH] fix: prevent error 500 on search with no results ``getArticlesToSell()`` returned ``false`` when no articles matched, causing ``collect(false)`` to produce ``[false]``. The view then iterated over that single-element array and tried to access array offsets on a boolean value. --- app/Repositories/Shop/Articles.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Repositories/Shop/Articles.php b/app/Repositories/Shop/Articles.php index 36a0ce51..5c4a0683 100644 --- a/app/Repositories/Shop/Articles.php +++ b/app/Repositories/Shop/Articles.php @@ -204,7 +204,7 @@ class Articles ksort($data); } - return $data ?? false; + return $data ?? []; } public static function getDataForSale($article)