From e3ebc3eb5fa1fff573100a5ca2c7c025aa6e14ab Mon Sep 17 00:00:00 2001 From: Urban Müller Date: Thu, 6 Mar 2014 14:15:44 +0100 Subject: keep supporting title only mode --- it.class | 2 ++ 1 file changed, 2 insertions(+) (limited to 'it.class') diff --git a/it.class b/it.class index a5c9bb4..35c14a5 100644 --- a/it.class +++ b/it.class @@ -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 -- cgit v1.2.3