This commit is contained in:
Jun Pataleta 2022-06-20 14:40:07 +08:00
commit 240d7f6054

View file

@ -684,7 +684,7 @@ class tree extends tree_node {
} else { } else {
unset($this->children[$index]); unset($this->children[$index]);
unset($this->showchildren[$index]); unset($this->showchildren[$index]);
$this->showchildren = array_values($this->showchildren); $this->showchildren = !is_null($this->showchildren) ? array_values($this->showchildren) : null;
$changed = true; $changed = true;
} }
} }