diff options
author | Nathan Gass | 2020-08-27 16:13:27 +0200 |
---|---|---|
committer | Nathan Gass | 2020-08-27 16:13:27 +0200 |
commit | c9c380ef58dc7292793c59585af6d5217750c103 (patch) | |
tree | 8084da9ce56eac1a60b3ba37419270253de0a11f /it_dbi.class | |
parent | b038b45bd9df87fc3a22c8d3408ba62186ce0a91 (diff) | |
download | itools-c9c380ef58dc7292793c59585af6d5217750c103.tar.gz itools-c9c380ef58dc7292793c59585af6d5217750c103.tar.bz2 itools-c9c380ef58dc7292793c59585af6d5217750c103.zip |
use existing tables method
Diffstat (limited to 'it_dbi.class')
-rw-r--r-- | it_dbi.class | 3 |
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; |