From c9c380ef58dc7292793c59585af6d5217750c103 Mon Sep 17 00:00:00 2001 From: Nathan Gass Date: Thu, 27 Aug 2020 16:13:27 +0200 Subject: use existing tables method --- it_dbi.class | 3 +-- 1 file changed, 1 insertion(+), 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; -- cgit v1.2.3