From 59fdd2edca9455126c6ce606ba2819aa6450dfda Mon Sep 17 00:00:00 2001 From: David M Date: Mon, 19 Feb 2007 19:35:52 +0000 Subject: #8234 - some stupid bugs in restore - centralized the method of getting tables git-svn-id: file:///svn/phpbb/trunk@7015 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/install/install_convert.php | 19 +++++-------------- 1 file changed, 5 insertions(+), 14 deletions(-) (limited to 'phpBB/install/install_convert.php') diff --git a/phpBB/install/install_convert.php b/phpBB/install/install_convert.php index 0986ef42f9..c7432aeb42 100644 --- a/phpBB/install/install_convert.php +++ b/phpBB/install/install_convert.php @@ -445,22 +445,13 @@ class install_convert extends module if (!$result) { $prefixes = array(); - // TODO: fixme - if ($result = $src_db->sql_query('SHOW TABLES')) + + $tables_existing = get_tables($src_db); + foreach ($tables_existing as $table_name) { - while ($row = $src_db->sql_fetchrow($result)) - { - if (sizeof($row) > 1) - { - compare_table($tables, $row[0], $prefixes); - } - else if (list(, $tablename) = @each($row)) - { - compare_table($tables, $tablename, $prefixes); - } - } - $src_db->sql_freeresult($result); + compare_table($tables, $table_name, $prefixes); } + unset($tables_existing); foreach ($prefixes as $prefix => $count) { -- cgit v1.2.1