From f2a14f37918db345d14cf38a9038b8a904ebd1e9 Mon Sep 17 00:00:00 2001 From: halworsen Date: Tue, 13 Feb 2018 17:02:03 +0100 Subject: [PATCH] Only show MOTD title if it is set --- www/index.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/www/index.php b/www/index.php index 7a4887c..ab3f237 100644 --- a/www/index.php +++ b/www/index.php @@ -99,11 +99,12 @@ $motd = $motdfetcher->getMOTD();
Dagens melding"; - if($title != ""){ - echo $title_text; + echo "

"; + if($title == ""){ + echo "Dagens melding"; + }else{ + echo $title; } echo "

";