summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--it.class3
1 files changed, 3 insertions, 0 deletions
diff --git a/it.class b/it.class
index 25313f6..2b325b8 100644
--- a/it.class
+++ b/it.class
@@ -127,6 +127,9 @@ static function timerlog($label = '')
*/
static function error($p = array(), $body = null, $to = null) # $body and $to deprecated
{
+ if ($body || $to)
+ it::error("deprecated usage of it::error");
+
if (!is_array($p))
$p = array('title' => $p, 'body' => $body, 'to' => $to);