summaryrefslogtreecommitdiff
path: root/it.class
diff options
context:
space:
mode:
Diffstat (limited to 'it.class')
-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