summaryrefslogtreecommitdiff
path: root/it_dbi.class
diff options
context:
space:
mode:
authorNathan Gass2020-08-27 16:13:27 +0200
committerNathan Gass2020-08-27 16:13:27 +0200
commitc9c380ef58dc7292793c59585af6d5217750c103 (patch)
tree8084da9ce56eac1a60b3ba37419270253de0a11f /it_dbi.class
parentb038b45bd9df87fc3a22c8d3408ba62186ce0a91 (diff)
downloaditools-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.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;