aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorThomas Lange <code@nerdmind.de>2021-07-01 21:34:36 +0200
committerThomas Lange <code@nerdmind.de>2021-07-01 21:34:36 +0200
commit78f8fb62f4d5b518eac51ffa8c03adc320d5ab1e (patch)
tree7d80b9f73166cb88bd4a1ba2ac681d28cd01712f /core
parentf1d09d8cdc6e4a1ed0fb44544b368c6632bbd379 (diff)
downloadblog-78f8fb62f4d5b518eac51ffa8c03adc320d5ab1e.tar.gz
blog-78f8fb62f4d5b518eac51ffa8c03adc320d5ab1e.tar.xz
blog-78f8fb62f4d5b518eac51ffa8c03adc320d5ab1e.zip
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.
Diffstat (limited to 'core')
-rw-r--r--core/include/category/main.php2
1 files changed, 1 insertions, 1 deletions
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();
}