From 78f8fb62f4d5b518eac51ffa8c03adc320d5ab1e Mon Sep 17 00:00:00 2001 From: Thomas Lange Date: Thu, 1 Jul 2021 21:34:36 +0200 Subject: Bugfix: Use empty check instead of isset If no category tree was found, the array is empty but isset evaluates to true. This fixes the mistake and uses an empty check instead. --- core/include/category/main.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/include/category') diff --git a/core/include/category/main.php b/core/include/category/main.php index 1f9adf7..066ea26 100644 --- a/core/include/category/main.php +++ b/core/include/category/main.php @@ -28,7 +28,7 @@ else { #=============================================================================== # Throw 404 error if category (with parents) could not be found #=============================================================================== -if(!isset($categories)) { +if(empty($categories)) { Application::error404(); } -- cgit v1.2.3