aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/inc/Menu/Item/AbstractItem.php
diff options
context:
space:
mode:
Diffstat (limited to 'inc/Menu/Item/AbstractItem.php')
-rw-r--r--inc/Menu/Item/AbstractItem.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/inc/Menu/Item/AbstractItem.php b/inc/Menu/Item/AbstractItem.php
index 45ead5562..c6b04bfd3 100644
--- a/inc/Menu/Item/AbstractItem.php
+++ b/inc/Menu/Item/AbstractItem.php
@@ -114,7 +114,7 @@ abstract class AbstractItem {
* @return string
*/
public function getLink() {
- if($this->id[0] == '#') {
+ if($this->id && $this->id[0] == '#') {
return $this->id;
} else {
return wl($this->id, $this->params, false, '&');