diff options
author | Paul S. Owen <psotfx@users.sourceforge.net> | 2002-01-01 18:59:50 +0000 |
---|---|---|
committer | Paul S. Owen <psotfx@users.sourceforge.net> | 2002-01-01 18:59:50 +0000 |
commit | 46babee09d6f8e93482fec909b8918c1a4436126 (patch) | |
tree | a838c58ba35a2573bddca4aace9fa787cd0edc7f /phpBB | |
parent | d1fdf1e8c7c77d9e16a3c0a6306db96de48ee8ec (diff) | |
download | forums-46babee09d6f8e93482fec909b8918c1a4436126.tar forums-46babee09d6f8e93482fec909b8918c1a4436126.tar.gz forums-46babee09d6f8e93482fec909b8918c1a4436126.tar.bz2 forums-46babee09d6f8e93482fec909b8918c1a4436126.tar.xz forums-46babee09d6f8e93482fec909b8918c1a4436126.zip |
Possible fix for bug #496857
git-svn-id: file:///svn/phpbb/trunk@1768 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB')
-rw-r--r-- | phpBB/admin/index.php | 4 |
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); |