diff --git a/src/www/foot.inc b/src/www/foot.inc
index 0f6971e3a..9c8834b99 100644
--- a/src/www/foot.inc
+++ b/src/www/foot.inc
@@ -36,8 +36,9 @@
$widgettitlelink = $widgetItem['name'] . "_title_link";?>
- | ")'>=$widgettitle; ?> |
+ // XXX: ${$} is intentional here, the widgets leave global vars [widget_name]_title_link and [widget_name]_title
+ if (isset(${$widgettitle})):?>
+ ")'>=$$widgettitle; ?> |
")'>=$widgetItem['display_name']; ?> |
diff --git a/src/www/index.php b/src/www/index.php
index dd6abb024..5680dd820 100644
--- a/src/www/index.php
+++ b/src/www/index.php
@@ -383,12 +383,13 @@ include("fbegin.inc");?>
-
+ // XXX: ${$} is intentional here, the widgets leave global vars [widget_name]_title_link and [widget_name]_title
+ if (isset($$widgettitlelink)):?>
+
+ echo empty($$widgettitle) ? $widgetItem['display_name'] : ${$widgettitle};
+ if (isset(${$widgettitlelink})):?>