]> _ Git - cubeextranet.git/commitdiff
wait #4802 @0:10
authorvincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Tue, 19 Oct 2021 10:39:54 +0000 (10:39 +0000)
committervincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Tue, 19 Oct 2021 10:39:54 +0000 (10:39 +0000)
inc/ws/Util/html5/master/class.ws.html5.seo.php

index 56fa5110d24221988da91fb37fe05f6967fb304e..97d901bdc85598707dd3a3ddfac8014ed21fcfce 100644 (file)
@@ -196,10 +196,10 @@ class wsHTML5SeoPage
         if (!$this->canonical) {\r
             $this->canonical = $this->getURL();\r
         }\r
-        if (!$this->next && isset($this->_container->pages[$this->page + 1])) {\r
+        if (!$this->next && isset($this->_container->pages[$this->page + 1]) && $this->_container->pages[$this->page + 1] instanceof wsHTML5SeoPage) {\r
             $this->next = $this->_container->pages[$this->page + 1]->getURL();\r
         }\r
-        if (!$this->prev && isset($this->_container->pages[$this->page - 1])) {\r
+        if (!$this->prev && isset($this->_container->pages[$this->page - 1]) && $this->_container->pages[$this->page - 1] instanceof wsHTML5SeoPage) {\r
             $this->prev = $this->_container->pages[$this->page - 1]->getURL();\r
         }\r
 \r