From c7861bc5ff03c1eb2b7e33d3f3a94d8a095650ab Mon Sep 17 00:00:00 2001 From: Guillaume Mazoyer Date: Mon, 8 Dec 2014 20:51:03 +0100 Subject: Define more default values. Some can be set to 'null' to avoid displaying some info. --- index.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'index.php') 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('

'.htmlentities($this->frontpage['title']).'


'); } - if (isset($this->frontpage['image'])) { - print('logo'); + if ($this->frontpage['image'] != null) { + print('Logo'); } print(''); print(''); @@ -167,12 +167,12 @@ final class LookingGlass { } } - if (isset($this->frontpage['disclaimer'])) { + if ($this->frontpage['disclaimer'] != null) { print($this->frontpage['disclaimer']); print('

'); } - if (isset($this->contact) && !empty($this->contact)) { + if (($this->contact['name'] != null) && ($this->contact['mail'] != null)) { print('Contact: '); print(''. htmlentities($this->contact['name']).''); -- cgit v1.2.3