From 97171f9a1a0a716903592d6d5232a8e034c03ab0 Mon Sep 17 00:00:00 2001 From: Thomas BrĂ¼derli Date: Thu, 9 Nov 2006 15:07:27 +0000 Subject: Prevent errors when instantiating it_html twice --- html.class | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'html.class') diff --git a/html.class b/html.class index a437d54..f23274b 100644 --- a/html.class +++ b/html.class @@ -69,7 +69,7 @@ function it_html($config = array()) foreach($funcs as $func) { # Do not globalise 'private' functions starting in '_' or for our constructor - if (preg_match('/^_/', $func) || is_a($this, $func) || empty($func)) + if (preg_match('/^_/', $func) || is_a($this, $func) || empty($func) || function_exists($func)) continue; $funcargs = array(); -- cgit v1.2.3