Skip to content

Commit

Permalink
Merge pull request #2569 from jeedom/alpha
Browse files Browse the repository at this point in the history
Correct bug on getIsVisible send null
  • Loading branch information
zoic21 authored Apr 24, 2024
2 parents f82f546 + 419d4e9 commit d39b7f1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/class/jeeObject.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit d39b7f1

Please sign in to comment.