]> _ Git - cubeextranet.git/commitdiff
fix #2236 @0.5
authorvincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Fri, 14 Sep 2018 14:33:24 +0000 (14:33 +0000)
committervincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Fri, 14 Sep 2018 14:33:24 +0000 (14:33 +0000)
inc/ws/Util/html5/master/class.ws.html5.seo.php

index d46df167b493d4347b85cf51bf22e36fa63cc8b7..acb1a5a9bf5fdaef8d33182065df5ebe729ae841 100644 (file)
@@ -94,7 +94,16 @@ class wsHTML5Seo
        {\r
                $res = $this->compiler->book->parametres->title;\r
                foreach ($this->compiler->book->chapters as $chapter) {\r
+                       if (trim($chapter->label, "\t\r\n\0\x0B-+") == '') {\r
+                               continue;\r
+                       }\r
+                       if($chapter->page==''){\r
+                               continue;\r
+                       }\r
                        $p = $this->compiler->virtualToPhysical($chapter->page);\r
+                       if ($p == '') {\r
+                               continue;\r
+                       }\r
                        if ($page < $p) {\r
                                continue;\r
                        }\r