add logging method detection for IPv6

This commit is contained in:
coderkun 2014-02-09 13:38:25 +01:00
commit 2be685883a

View file

@ -25,7 +25,7 @@
/**
* De-/Activate error messages
*/
if($_SERVER['SERVER_ADDR'] == '127.0.0.1') {
if($_SERVER['SERVER_ADDR'] == '127.0.0.1' || $_SERVER['SERVER_ADDR'] == '::1') {
error_reporting(E_ALL);
ini_set('display_errors', 1);
ini_set('log_errors', 0);