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. --- docs/configuration.md | 2 +- index.php | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/configuration.md b/docs/configuration.md index 47ef38e..9335a51 100644 --- a/docs/configuration.md +++ b/docs/configuration.md @@ -58,7 +58,7 @@ $config['frontpage']['peering_policy_file'] = null; ``` Sets the path to the peering policy file. If set to null no peering policy will be able to be shown. The peering policy file must be located in a -readable location and must contain only HTML formatted text. +readable location and must contain HTML formatted text. ```php $config['frontpage']['disclaimer'] = 'Disclaimer example'; 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