aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/install/install_convert.php
diff options
context:
space:
mode:
authorDavid M <davidmj@users.sourceforge.net>2007-02-19 19:35:52 +0000
committerDavid M <davidmj@users.sourceforge.net>2007-02-19 19:35:52 +0000
commit59fdd2edca9455126c6ce606ba2819aa6450dfda (patch)
tree594260670a88be3ea7b580534280aaf211c029c8 /phpBB/install/install_convert.php
parentbf8bea4967c50ba61c6bd897d3611fccdac24bee (diff)
downloadforums-59fdd2edca9455126c6ce606ba2819aa6450dfda.tar
forums-59fdd2edca9455126c6ce606ba2819aa6450dfda.tar.gz
forums-59fdd2edca9455126c6ce606ba2819aa6450dfda.tar.bz2
forums-59fdd2edca9455126c6ce606ba2819aa6450dfda.tar.xz
forums-59fdd2edca9455126c6ce606ba2819aa6450dfda.zip
#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
Diffstat (limited to 'phpBB/install/install_convert.php')
-rw-r--r--phpBB/install/install_convert.php19
1 files changed, 5 insertions, 14 deletions
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)
{