summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUrban Müller2014-03-06 14:15:44 +0100
committerUrban Müller2014-03-06 14:19:33 +0100
commite3ebc3eb5fa1fff573100a5ca2c7c025aa6e14ab (patch)
treee9b04b50bccdb89ef23065093514024a38d700ae
parent311aba6f64ed4b943e391584697b1cdb4d1fb8bf (diff)
downloaditools-e3ebc3eb5fa1fff573100a5ca2c7c025aa6e14ab.tar.gz
itools-e3ebc3eb5fa1fff573100a5ca2c7c025aa6e14ab.tar.bz2
itools-e3ebc3eb5fa1fff573100a5ca2c7c025aa6e14ab.zip
keep supporting title only mode
-rw-r--r--it.class2
1 files changed, 2 insertions, 0 deletions
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