mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
Possible fix for bug #496857
git-svn-id: file:///svn/phpbb/trunk@1768 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
d1fdf1e8c7
commit
46babee09d
1 changed files with 3 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue