summaryrefslogtreecommitdiff
path: root/it_dbi.class
diff options
context:
space:
mode:
authorChristian Schneider2008-06-27 08:52:42 +0000
committerChristian Schneider2008-06-27 08:52:42 +0000
commite14de12b84bb61bea5a94efb4b9c6cad37b7e8b1 (patch)
treed371f8155ca9d3ffcfef2b0779b5d194be8f5409 /it_dbi.class
parentabfc7d5e3419e6f317a6366b7e4c273b0465ed2e (diff)
downloaditools-e14de12b84bb61bea5a94efb4b9c6cad37b7e8b1.tar.gz
itools-e14de12b84bb61bea5a94efb4b9c6cad37b7e8b1.tar.bz2
itools-e14de12b84bb61bea5a94efb4b9c6cad37b7e8b1.zip
Honor classprefix when checking for existence of class (Used in ad/localads.html)
Diffstat (limited to 'it_dbi.class')
-rw-r--r--it_dbi.class2
1 files changed, 1 insertions, 1 deletions
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);
}
}