aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB
diff options
context:
space:
mode:
authorDavid M <davidmj@users.sourceforge.net>2007-03-24 05:20:20 +0000
committerDavid M <davidmj@users.sourceforge.net>2007-03-24 05:20:20 +0000
commit99ba459014c2d391a7fe4febbd0af39c93d38dc1 (patch)
treea3284a45acd47f6e44fd2c8eba4d32faf535e76e /phpBB
parent369dc7502c37f0a8a5eb7649bb75640bb03c3716 (diff)
downloadforums-99ba459014c2d391a7fe4febbd0af39c93d38dc1.tar
forums-99ba459014c2d391a7fe4febbd0af39c93d38dc1.tar.gz
forums-99ba459014c2d391a7fe4febbd0af39c93d38dc1.tar.bz2
forums-99ba459014c2d391a7fe4febbd0af39c93d38dc1.tar.xz
forums-99ba459014c2d391a7fe4febbd0af39c93d38dc1.zip
#5265
git-svn-id: file:///svn/phpbb/trunk@7223 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB')
-rw-r--r--phpBB/includes/functions_install.php8
1 files changed, 1 insertions, 7 deletions
diff --git a/phpBB/includes/functions_install.php b/phpBB/includes/functions_install.php
index f72037ad49..08a4e9f0fd 100644
--- a/phpBB/includes/functions_install.php
+++ b/phpBB/includes/functions_install.php
@@ -193,14 +193,12 @@ function get_tables($db)
case 'mysql4':
case 'mysqli':
$sql = 'SHOW TABLES';
- $field = 'Tables_in_' . strtolower($db->dbname);
break;
case 'sqlite':
$sql = 'SELECT name
FROM sqlite_master
WHERE type = "table"';
- $field = 'name';
break;
case 'mssql':
@@ -208,13 +206,11 @@ function get_tables($db)
$sql = "SELECT name
FROM sysobjects
WHERE type='U'";
- $field = 'name';
break;
case 'postgres':
$sql = 'SELECT relname
FROM pg_stat_user_tables';
- $field = 'relname';
break;
case 'firebird':
@@ -222,13 +218,11 @@ function get_tables($db)
FROM rdb$relations
WHERE rdb$view_source is null
AND rdb$system_flag = 0';
- $field = 'rdb$relation_name';
break;
case 'oracle':
$sql = 'SELECT table_name
FROM USER_TABLES';
- $field = 'table_name';
break;
}
@@ -238,7 +232,7 @@ function get_tables($db)
while ($row = $db->sql_fetchrow($result))
{
- $tables[] = $row[$field];
+ $tables[] = current($row);
}
$db->sql_freeresult($result);