aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB')
-rw-r--r--phpBB/admin/index.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/phpBB/admin/index.php b/phpBB/admin/index.php
index bb8d1497c3..9df371f21c 100644
--- a/phpBB/admin/index.php
+++ b/phpBB/admin/index.php
@@ -231,8 +231,10 @@ elseif( $HTTP_GET_VARS['pane'] == 'right' )
if( preg_match("/^(3\.23|4\.)/", $version) )
{
+ $db_name = ( preg_match("/^(3\.23\.[6-9])|(3\.23\.[1-9][1-9])|(4\.)/", $version) ) ? "`$dbname`" : $dbname;
+
$sql = "SHOW TABLE STATUS
- FROM " . $dbname;
+ FROM " . $db_name;
if(!$result = $db->sql_query($sql))
{
message_die(GENERAL_ERROR, "Couldn't obtain table information.", "", __LINE__, __FILE__, $sql);