From 38f772d68661d40c976495112344f61d1a89de45 Mon Sep 17 00:00:00 2001 From: Urban Müller Date: Wed, 26 Sep 2007 15:14:14 +0000 Subject: bugfix --- it_dbi.class | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'it_dbi.class') 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! -- cgit v1.2.3