From c5ad1c7504adf5449122ac14a7131741cff58ccf Mon Sep 17 00:00:00 2001 From: Guillaume Mazoyer Date: Mon, 14 Mar 2016 14:12:19 +0100 Subject: Simplify some conditions. --- index.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'index.php') diff --git a/index.php b/index.php index 3acee49..3ac77b3 100644 --- a/index.php +++ b/index.php @@ -95,18 +95,18 @@ final class LookingGlass { } private function render_header() { - if ($this->frontpage['header_link'] != null) { + if ($this->frontpage['header_link']) { print(''); } print('
'); if ($this->frontpage['show_title']) { print('

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


'); } - if ($this->frontpage['image'] != null) { + if ($this->frontpage['image']) { print('Logo'); } print('
'); - if ($this->frontpage['header_link'] != null) { + if ($this->frontpage['header_link']) { print('
'); } } -- cgit v1.2.3