summaryrefslogtreecommitdiff
path: root/it_dbi.class
diff options
context:
space:
mode:
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!