From ef4267241d9ef3b397d9251a4f023a5d762f5571 Mon Sep 17 00:00:00 2001 From: Urban Müller Date: Tue, 2 Jan 2007 19:10:50 +0000 Subject: handle nothing to do case, faster debug param check --- html.class | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'html.class') diff --git a/html.class b/html.class index e9f3e9d..9109efd 100644 --- a/html.class +++ b/html.class @@ -83,7 +83,7 @@ function it_html($config = array()) foreach (explode(",", $this->_staticallycallable) as $func) $code[$func] = "function $func() { \$args = func_get_args(); return call_user_func_array(array(&\$GLOBALS['$this->_name'], '$func'), \$args); }"; - eval(join("", $code)); + eval(join("", (array)$code)); # Since name is given as param, it is our duty to store it, not our caller's. $GLOBALS[$this->_name] =& $this; @@ -156,7 +156,7 @@ function _tag($name, $args) else $result .= " />$newline"; - if (EDC('srclines')) + if ($GLOBALS['debug_srclines']) { $trace = debug_backtrace(); $trace = $trace[2]; -- cgit v1.2.3