From: vincent@cubedesigners.com Date: Fri, 14 Sep 2018 14:33:24 +0000 (+0000) Subject: fix #2236 @0.5 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=028b06879a6d3638652e5fbf3fc000422a5d137f;p=cubeextranet.git fix #2236 @0.5 --- diff --git a/inc/ws/Util/html5/master/class.ws.html5.seo.php b/inc/ws/Util/html5/master/class.ws.html5.seo.php index d46df167b..acb1a5a9b 100644 --- a/inc/ws/Util/html5/master/class.ws.html5.seo.php +++ b/inc/ws/Util/html5/master/class.ws.html5.seo.php @@ -94,7 +94,16 @@ class wsHTML5Seo { $res = $this->compiler->book->parametres->title; foreach ($this->compiler->book->chapters as $chapter) { + if (trim($chapter->label, "\t\r\n\0\x0B-+") == '') { + continue; + } + if($chapter->page==''){ + continue; + } $p = $this->compiler->virtualToPhysical($chapter->page); + if ($p == '') { + continue; + } if ($page < $p) { continue; }