summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--html.class5
1 files changed, 4 insertions, 1 deletions
diff --git a/html.class b/html.class
index 9109efd..cca2de7 100644
--- a/html.class
+++ b/html.class
@@ -81,7 +81,10 @@ function it_html($config = array())
# Create global functions for methods that are statically callable (have same arguments as global stubs)
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); }";
+ {
+ if ($func && !function_exists($func))
+ $code[$func] = "function $func() { \$args = func_get_args(); return call_user_func_array(array(&\$GLOBALS['$this->_name'], '$func'), \$args); }";
+ }
eval(join("", (array)$code));