aboutsummaryrefslogtreecommitdiff
path: root/lib/classes/TreeAbstract.class.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/classes/TreeAbstract.class.php')
-rw-r--r--lib/classes/TreeAbstract.class.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/classes/TreeAbstract.class.php b/lib/classes/TreeAbstract.class.php
index 9f54654..69fedce 100644
--- a/lib/classes/TreeAbstract.class.php
+++ b/lib/classes/TreeAbstract.class.php
@@ -203,7 +203,7 @@ class TreeAbstract {
*/
public function getKids($item_id)
{
- return (isset($this->tree_childs[$item_id]) && is_array($this->tree_childs[$item_id])) ? $this->tree_childs[$item_id] : null;
+ return (isset($this->tree_childs[$item_id]) && is_array($this->tree_childs[$item_id])) ? $this->tree_childs[$item_id] : [];
}
/**
@@ -242,7 +242,7 @@ class TreeAbstract {
$this->getKidsKids($kids[$i],true);
}
}
- return (!$in_recursion) ? $kidskids : null;
+ return (!$in_recursion) ? $kidskids : [];
}
/**
@@ -266,7 +266,7 @@ class TreeAbstract {
$this->getNumKidsKids($kids[$i],true);
}
}
- return (!$in_recursion) ? $num_kidskids : null;
+ return (!$in_recursion) ? $num_kidskids : 0;
}
/**