From 60b1f78d9dbc8a1d1830a5d68d6ebb27c58d3efa Mon Sep 17 00:00:00 2001 From: Cash Costello Date: Sat, 10 Sep 2011 21:30:02 -0400 Subject: Fixes #3741 fixed menu code so that all links do not get empty title and confirm attributes --- engine/classes/ElggMenuItem.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'engine/classes/ElggMenuItem.php') diff --git a/engine/classes/ElggMenuItem.php b/engine/classes/ElggMenuItem.php index cfdc2f5fa..f7a6b5c65 100644 --- a/engine/classes/ElggMenuItem.php +++ b/engine/classes/ElggMenuItem.php @@ -59,7 +59,7 @@ class ElggMenuItem { /** * @var string Tooltip */ - protected $title = ''; + protected $title = false; /** * @var string The string to display if link is clicked @@ -552,6 +552,8 @@ class ElggMenuItem { if ($this->confirm) { $vars['confirm'] = $this->confirm; return elgg_view('output/confirmlink', $vars); + } else { + unset($vars['confirm']); } return elgg_view('output/url', $vars); -- cgit v1.2.3