From 419d4e9cad4bfa4ab3e50029682e617402b3dd3c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc?= <1536036+zoic21@users.noreply.github.com> Date: Wed, 24 Apr 2024 15:38:55 +0200 Subject: [PATCH] Correct bug on getIsVisible send null --- core/class/jeeObject.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/class/jeeObject.class.php b/core/class/jeeObject.class.php index 3981305885..efb641ad12 100644 --- a/core/class/jeeObject.class.php +++ b/core/class/jeeObject.class.php @@ -1267,14 +1267,14 @@ public function getName() { } public function getFather_id($_default = null) { - if ($this->father_id == '' || !is_numeric($this->father_id)) { + if (!is_numeric($this->father_id)) { return $_default; } return $this->father_id; } public function getIsVisible($_default = null) { - if ($this->isVisible == '' || !is_numeric($this->isVisible)) { + if (!is_numeric($this->isVisible)) { return $_default; } return $this->isVisible;