Skip to content
Snippets Groups Projects
Commit 269c3d79 authored by Thomas Hackl's avatar Thomas Hackl
Browse files

Resolve "In einer neuen, leeren Installation können mit PHP 8.0 keine Einträge...

Resolve "In einer neuen, leeren Installation können mit PHP 8.0 keine Einträge der Einrichtungshierarchie angelegt werden."

Closes #2733

Merge request !1852
parent 132d580c
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment