summaryrefslogtreecommitdiff
path: root/it_dbi.class
diff options
context:
space:
mode:
Diffstat (limited to 'it_dbi.class')
-rw-r--r--it_dbi.class3
1 files changed, 1 insertions, 2 deletions
diff --git a/it_dbi.class b/it_dbi.class
index 32ae831..a00d236 100644
--- a/it_dbi.class
+++ b/it_dbi.class
@@ -160,8 +160,7 @@ static function createclass($p)
if (!($tables = $state['tables']))
{
- for ($tables = array(), $res = $dbi->query('SHOW TABLES', $p); $row = mysqli_fetch_row($res);)
- $tables[] = $row[0];
+ $tables = $dbi->tables($p);
$state = it_dbi::_state_get($dbid); # State could have been modified by query above
$state['tables'] = $tables;