summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUrban Müller2007-01-02 19:10:50 +0000
committerUrban Müller2007-01-02 19:10:50 +0000
commitef4267241d9ef3b397d9251a4f023a5d762f5571 (patch)
treee93843b52b351a93123b079bc342e906500780d1
parent43847664f37639a4bbf70202e02e569087c4c0dc (diff)
downloaditools-ef4267241d9ef3b397d9251a4f023a5d762f5571.tar.gz
itools-ef4267241d9ef3b397d9251a4f023a5d762f5571.tar.bz2
itools-ef4267241d9ef3b397d9251a4f023a5d762f5571.zip
handle nothing to do case, faster debug param check
-rw-r--r--html.class4
1 files changed, 2 insertions, 2 deletions
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];