From 70c3cf5bffed02792f15100ff775fec1e23a0c2d Mon Sep 17 00:00:00 2001 From: Christian Schneider Date: Sun, 18 May 2008 16:41:10 +0000 Subject: Use class_exists to check if we need to extend by xy_tools class --- it.class | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/it.class b/it.class index bf9969d..9383d8e 100644 --- a/it.class +++ b/it.class @@ -46,11 +46,8 @@ function createconfig($p = array()) 'service' => $parts[2], ); - if ($file = @fopen($p['service'] . "_tools.class", "r", true)) - { + if (class_exists($p['service'] . "_tools")) $extends = "extends {$p['service']}_tools "; - fclose($file); - } $code = array("class {$p['service']} $extends{"); -- cgit v1.2.3