diff options
author | Thomas Lange <code@nerdmind.de> | 2021-07-01 21:34:36 +0200 |
---|---|---|
committer | Thomas Lange <code@nerdmind.de> | 2021-07-01 21:34:36 +0200 |
commit | 78f8fb62f4d5b518eac51ffa8c03adc320d5ab1e (patch) | |
tree | 7d80b9f73166cb88bd4a1ba2ac681d28cd01712f /core/include/category | |
parent | f1d09d8cdc6e4a1ed0fb44544b368c6632bbd379 (diff) | |
download | blog-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/include/category')
-rw-r--r-- | core/include/category/main.php | 2 |
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(); } |