From e14de12b84bb61bea5a94efb4b9c6cad37b7e8b1 Mon Sep 17 00:00:00 2001 From: Christian Schneider Date: Fri, 27 Jun 2008 08:52:42 +0000 Subject: Honor classprefix when checking for existence of class (Used in ad/localads.html) --- it_dbi.class | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/it_dbi.class b/it_dbi.class index 709ddee..aa88487 100644 --- a/it_dbi.class +++ b/it_dbi.class @@ -113,7 +113,7 @@ function createclasses($p = array()) for ($res = $dbi->query('SHOW TABLES'); $row = mysql_fetch_row($res);) { # Either create class in autoloader or manually just below - if (!class_exists($row[0])) + if (!class_exists($p['classprefix'] . $row[0])) it_dbi::createclass(array('table' => $row[0]) + $p); } } -- cgit v1.2.3