diff options
-rw-r--r-- | it.class | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -127,6 +127,8 @@ static function timerlog($label = '') */ static function error($p = array()) { + $p = is_array($p) ? $p : array('title' => $p); + if ($_SERVER['REMOTE_ADDR']) $url = ($_SERVER['HTTPS'] ? "https://" : "http://") . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']; else |