change to luos in docker

This commit is contained in:
Fernando Ontiveros
2025-04-06 08:21:10 +00:00
parent 30bd9b0393
commit 8a559cadeb
13 changed files with 23 additions and 73 deletions

View File

@@ -605,11 +605,7 @@ class TemplatePower extends TemplatePowerParser
public function newBlock($blockname)
{
$parent = &$this->content[$this->parent[$blockname] . '_' . $this->index[$this->parent[$blockname]]];
if (is_array($parent) || $parent instanceof Countable) {
$lastitem = sizeof($parent);
} else {
$lastitem = 0; // or handle it in another way as needed
}
$lastitem = sizeof($parent);
$lastitem > 1 ? $lastitem-- : $lastitem = 0;
$ind_blockname = $blockname . '_' . $this->index[$blockname];
if (!isset($parent[$lastitem]["_B:$blockname"])) {