Only show MOTD title if it is set
This commit is contained in:
parent
1db31b9e56
commit
f2a14f3791
|
@ -99,11 +99,12 @@ $motd = $motdfetcher->getMOTD();
|
|||
<div class="gridl">
|
||||
<?php
|
||||
$title = $motd["title"];
|
||||
$title_text = " - " . $title;
|
||||
|
||||
echo "<h2>Dagens melding";
|
||||
if($title != ""){
|
||||
echo $title_text;
|
||||
echo "<h2>";
|
||||
if($title == ""){
|
||||
echo "Dagens melding";
|
||||
}else{
|
||||
echo $title;
|
||||
}
|
||||
echo "</h2>";
|
||||
|
||||
|
|
Loading…
Reference in New Issue