From ab70f9853fa4ccd3f58e00385e32a60692724127 Mon Sep 17 00:00:00 2001 From: "vincent@cubedesigners.com" Date: Fri, 18 Dec 2020 09:13:36 +0000 Subject: [PATCH] wait #4134 @3 --- inc/ws/Util/html5/master/class.ws.html5.compiler.php | 1 + inc/ws/Util/html5/master/class.ws.html5.links.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/inc/ws/Util/html5/master/class.ws.html5.compiler.php b/inc/ws/Util/html5/master/class.ws.html5.compiler.php index b240a61e6..32380a688 100644 --- a/inc/ws/Util/html5/master/class.ws.html5.compiler.php +++ b/inc/ws/Util/html5/master/class.ws.html5.compiler.php @@ -1671,6 +1671,7 @@ class wsHTML5Compiler $ctpages[$lta->page] = ''; } + $v = $depths[$lta->getDepth()]; $$v[$lta->page] .= $c; } diff --git a/inc/ws/Util/html5/master/class.ws.html5.links.php b/inc/ws/Util/html5/master/class.ws.html5.links.php index 7237a76d6..cbbfcc1da 100644 --- a/inc/ws/Util/html5/master/class.ws.html5.links.php +++ b/inc/ws/Util/html5/master/class.ws.html5.links.php @@ -369,7 +369,7 @@ class wsHTML5Link public function getDepth() { - if ($this->zindex == -1) { + if ($this->zindex == -1 || null === $this->zindex || !$this->zindex) { return $this->defaultZIndex; } return $this->zindex; -- 2.39.5