diff options
author | Guillaume Mazoyer <respawneral@gmail.com> | 2014-08-05 10:36:26 +0200 |
---|---|---|
committer | Guillaume Mazoyer <respawneral@gmail.com> | 2014-08-05 10:36:26 +0200 |
commit | acce675f40b52560881677ace989902a28ba4c23 (patch) | |
tree | 97fce4c14ea0dea7e19b09ce3e1179c657054251 | |
parent | d3a7ab0b69b0b7ea3294a986946be5b32ec353fd (diff) |
Syntax cleanup.
-rw-r--r-- | index.php | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -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']).'<br />'; - } else { - print 'Your IP address: '.htmlentities($_SERVER['REMOTE_ADDR']).'<br />'; - } + if (isset($_SERVER['HTTP_X_FORWARDED_FOR'])) { + print 'Your IP address: '.htmlentities($_SERVER['HTTP_X_FORWARDED_FOR']).'<br />'; + } else { + print 'Your IP address: '.htmlentities($_SERVER['REMOTE_ADDR']).'<br />'; + } } if (isset($this->frontpage['disclaimer'])) { |