Possible fix for bug #496857

git-svn-id: file:///svn/phpbb/trunk@1768 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
Paul S. Owen 2002-01-01 18:59:50 +00:00
parent d1fdf1e8c7
commit 46babee09d

View file

@ -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);