summaryrefslogtreecommitdiff
path: root/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'index.php')
-rw-r--r--index.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/index.php b/index.php
index f28bfd4..c7dcb90 100644
--- a/index.php
+++ b/index.php
@@ -100,8 +100,8 @@ final class LookingGlass {
if ($this->frontpage['show_title']) {
print('<h1>'.htmlentities($this->frontpage['title']).'</h1><br />');
}
- if (isset($this->frontpage['image'])) {
- print('<img src="'.$this->frontpage['image'].'" alt="logo" />');
+ if ($this->frontpage['image'] != null) {
+ print('<img src="'.$this->frontpage['image'].'" alt="Logo" />');
}
print('</div>');
print('</a>');
@@ -167,12 +167,12 @@ final class LookingGlass {
}
}
- if (isset($this->frontpage['disclaimer'])) {
+ if ($this->frontpage['disclaimer'] != null) {
print($this->frontpage['disclaimer']);
print('<br /><br />');
}
- if (isset($this->contact) && !empty($this->contact)) {
+ if (($this->contact['name'] != null) && ($this->contact['mail'] != null)) {
print('Contact:&nbsp;');
print('<a href="mailto:'.$this->contact['mail'].'">'.
htmlentities($this->contact['name']).'</a>');