diff options
author | Phy <git@phy25.com> | 2019-12-01 16:09:43 -0500 |
---|---|---|
committer | Phy <git@phy25.com> | 2019-12-01 16:09:43 -0500 |
commit | 3a5cb0342fa3a05a6dce2ead0cbdedad8a074b6d (patch) | |
tree | 88cb5672623551cb6e4d53198117cecc5e17389b /inc/Menu | |
parent | 4a52f4c5cfc509a8021ea9c21ba739e9bb09edf7 (diff) | |
download | dokuwiki-3a5cb0342fa3a05a6dce2ead0cbdedad8a074b6d.tar.gz dokuwiki-3a5cb0342fa3a05a6dce2ead0cbdedad8a074b6d.zip |
PHP8 fix: string offset out of range due to null
Diffstat (limited to 'inc/Menu')
-rw-r--r-- | inc/Menu/Item/AbstractItem.php | 2 |
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, '&'); |