diff options
author | Guillaume Mazoyer <gmazoyer@gravitons.in> | 2016-03-14 14:12:19 +0100 |
---|---|---|
committer | Guillaume Mazoyer <gmazoyer@gravitons.in> | 2016-03-14 14:12:19 +0100 |
commit | c5ad1c7504adf5449122ac14a7131741cff58ccf (patch) | |
tree | 81d041c3bceb5cb4f63403ac775e4eb98bc30ffb /index.php | |
parent | b1bb5fdc0ab52342ae17da470f8368e75d9172c8 (diff) |
Simplify some conditions.
Diffstat (limited to 'index.php')
-rw-r--r-- | index.php | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -95,18 +95,18 @@ final class LookingGlass { } private function render_header() { - if ($this->frontpage['header_link'] != null) { + if ($this->frontpage['header_link']) { print('<a href="'.$this->frontpage['header_link'].'" title="Home">'); } print('<div class="header_bar">'); if ($this->frontpage['show_title']) { print('<h1>'.htmlentities($this->frontpage['title']).'</h1><br />'); } - if ($this->frontpage['image'] != null) { + if ($this->frontpage['image']) { print('<img src="'.$this->frontpage['image'].'" alt="Logo" />'); } print('</div>'); - if ($this->frontpage['header_link'] != null) { + if ($this->frontpage['header_link']) { print('</a>'); } } |