summaryrefslogtreecommitdiff
path: root/index.php
diff options
context:
space:
mode:
authorGuillaume Mazoyer <respawneral@gmail.com>2014-12-08 20:51:03 +0100
committerGuillaume Mazoyer <respawneral@gmail.com>2014-12-08 20:51:03 +0100
commitc7861bc5ff03c1eb2b7e33d3f3a94d8a095650ab (patch)
tree240419aaa7ba0ca84878a664fea2468464d36567 /index.php
parent656261727b9354fa9ecb46382888873e6eceb3a3 (diff)
Define more default values.
Some can be set to 'null' to avoid displaying some info.
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>');