From: vincent@cubedesigners.com Date: Tue, 19 Oct 2021 10:39:54 +0000 (+0000) Subject: wait #4802 @0:10 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=ab6b7a23899213dd8422783d5464fc51ebf7ea18;p=cubeextranet.git wait #4802 @0:10 --- 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 56fa5110d..97d901bdc 100644 --- a/inc/ws/Util/html5/master/class.ws.html5.seo.php +++ b/inc/ws/Util/html5/master/class.ws.html5.seo.php @@ -196,10 +196,10 @@ class wsHTML5SeoPage if (!$this->canonical) { $this->canonical = $this->getURL(); } - if (!$this->next && isset($this->_container->pages[$this->page + 1])) { + if (!$this->next && isset($this->_container->pages[$this->page + 1]) && $this->_container->pages[$this->page + 1] instanceof wsHTML5SeoPage) { $this->next = $this->_container->pages[$this->page + 1]->getURL(); } - if (!$this->prev && isset($this->_container->pages[$this->page - 1])) { + if (!$this->prev && isset($this->_container->pages[$this->page - 1]) && $this->_container->pages[$this->page - 1] instanceof wsHTML5SeoPage) { $this->prev = $this->_container->pages[$this->page - 1]->getURL(); }