mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-04 15:57:45 +02:00
Possible fix for bug #496857
git-svn-id: file:///svn/phpbb/trunk@1768 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -231,8 +231,10 @@ elseif( $HTTP_GET_VARS['pane'] == 'right' )
|
|||||||
|
|
||||||
if( preg_match("/^(3\.23|4\.)/", $version) )
|
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
|
$sql = "SHOW TABLE STATUS
|
||||||
FROM " . $dbname;
|
FROM " . $db_name;
|
||||||
if(!$result = $db->sql_query($sql))
|
if(!$result = $db->sql_query($sql))
|
||||||
{
|
{
|
||||||
message_die(GENERAL_ERROR, "Couldn't obtain table information.", "", __LINE__, __FILE__, $sql);
|
message_die(GENERAL_ERROR, "Couldn't obtain table information.", "", __LINE__, __FILE__, $sql);
|
||||||
|
Reference in New Issue
Block a user