From acce675f40b52560881677ace989902a28ba4c23 Mon Sep 17 00:00:00 2001 From: Guillaume Mazoyer Date: Tue, 5 Aug 2014 10:36:26 +0200 Subject: Syntax cleanup. --- index.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/index.php b/index.php index 7c7f6a8..78672a4 100644 --- a/index.php +++ b/index.php @@ -157,11 +157,11 @@ final class LookingGlass { if (!isset($this->frontpage['show_visitor_ip']) || $this->frontpage['show_visitor_ip']) { - if (isset($_SERVER['HTTP_X_FORWARDED_FOR'])) { - print 'Your IP address: '.htmlentities($_SERVER['HTTP_X_FORWARDED_FOR']).'
'; - } else { - print 'Your IP address: '.htmlentities($_SERVER['REMOTE_ADDR']).'
'; - } + if (isset($_SERVER['HTTP_X_FORWARDED_FOR'])) { + print 'Your IP address: '.htmlentities($_SERVER['HTTP_X_FORWARDED_FOR']).'
'; + } else { + print 'Your IP address: '.htmlentities($_SERVER['REMOTE_ADDR']).'
'; + } } if (isset($this->frontpage['disclaimer'])) { -- cgit v1.2.3