aboutsummaryrefslogtreecommitdiff
path: root/engine/classes
diff options
context:
space:
mode:
Diffstat (limited to 'engine/classes')
-rw-r--r--engine/classes/ElggMenuItem.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/engine/classes/ElggMenuItem.php b/engine/classes/ElggMenuItem.php
index 0538ed64c..3d512a08c 100644
--- a/engine/classes/ElggMenuItem.php
+++ b/engine/classes/ElggMenuItem.php
@@ -5,6 +5,8 @@
* @package Elgg.Core
* @subpackage Navigation
*
+ * To create a menu item that is not a link, pass false for $href.
+ *
* @since 1.8.0
*/
class ElggMenuItem {
@@ -443,7 +445,7 @@ class ElggMenuItem {
*/
public function getContent(array $vars = array()) {
- if ($this->href === false) {
+ if ($this->href === false || $this->href === null) {
return $this->text;
}