]> _ Git - cubeextranet.git/commitdiff
wait #2248 @0.25
authorvincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Tue, 18 Dec 2018 14:11:47 +0000 (14:11 +0000)
committervincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Tue, 18 Dec 2018 14:11:47 +0000 (14:11 +0000)
inc/ws/Util/html5/master/class.ws.html5.seo.php

index b1cfd664d6437f0dcaa73f48ee9f081263edf876..1dd123a4b934f516f1e75e97401eb999468d637f 100644 (file)
@@ -125,7 +125,9 @@ class wsHTML5Seo
                if (null == $this->_nav) {\r
                        $this->_nav = '<nav>';\r
                        foreach ($this->pages as $page => $p) {\r
-                               $this->_nav .= '<a href="' . $p->getUrl() . '">' . $p->title . '</a>';\r
+                               if (method_exists($p, 'getUrl')) {\r
+                                       $this->_nav .= '<a href="' . $p->getUrl() . '">' . $p->title . '</a>';\r
+                               }\r
                        }\r
                        $this->_nav .= '</nav>';\r
                }\r