summaryrefslogtreecommitdiff
path: root/it_dbi.class
diff options
context:
space:
mode:
authorUrban Müller2007-09-26 15:14:14 +0000
committerUrban Müller2007-09-26 15:14:14 +0000
commit38f772d68661d40c976495112344f61d1a89de45 (patch)
treea49d23eb4a3b2d9d851557b25971d918ad4b96c1 /it_dbi.class
parent9cc7e4e94d22c890d5af343c17ba448d9537a398 (diff)
downloaditools-38f772d68661d40c976495112344f61d1a89de45.tar.gz
itools-38f772d68661d40c976495112344f61d1a89de45.tar.bz2
itools-38f772d68661d40c976495112344f61d1a89de45.zip
bugfix
Diffstat (limited to 'it_dbi.class')
-rw-r--r--it_dbi.class6
1 files changed, 1 insertions, 5 deletions
diff --git a/it_dbi.class b/it_dbi.class
index ed326b9..09557de 100644
--- a/it_dbi.class
+++ b/it_dbi.class
@@ -71,9 +71,6 @@ function it_dbi($p = array(), $query = null)
if ($p['table']) # Standard use: create a table object
{
- if (!$GLOBALS['it_dbi'])
- new it_dbi(array('table' => null) + $p);
-
$this->_p += $this->_get_field_info(); # Get $this->_fields and p[keyfield, autoincrement, randomid]
if (is_array($query))
@@ -103,7 +100,7 @@ function createclasses($p = array())
$dbi->_fatal("it_dbi::createclasses(): can't list on tables \"{$p['db']}\"");
for ($i = 0; $i < mysql_num_rows($tables); $i++)
- $dbi->createclass(array('table' => mysql_tablename($tables, $i)) + $p);
+ it_dbi::createclass(array('table' => mysql_tablename($tables, $i)) + $p);
}
@@ -116,7 +113,6 @@ function createclass($p)
if (!is_array($p))
$p = array('table' => $p);
- $p += $this->_p;
$classname = $p['classprefix'] . $p['table'];
if (substr($classname, 0, 4) != 'PMA_') # It is designed behaviour that an error is generated if this class already exists!