mirror of
https://github.com/phpbb/phpbb.git
synced 2025-05-03 06:08:05 +02:00
Minor change to support mysql 5.0 in the database size code
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@5309 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
e284940213
commit
a0e567754e
@ -234,9 +234,9 @@ elseif( isset($HTTP_GET_VARS['pane']) && $HTTP_GET_VARS['pane'] == 'right' )
|
||||
$row = $db->sql_fetchrow($result);
|
||||
$version = $row['mysql_version'];
|
||||
|
||||
if( preg_match("/^(3\.23|4\.)/", $version) )
|
||||
if( preg_match("/^(3\.23|4\.|5\.)/", $version) )
|
||||
{
|
||||
$db_name = ( preg_match("/^(3\.23\.[6-9])|(3\.23\.[1-9][1-9])|(4\.)/", $version) ) ? "`$dbname`" : $dbname;
|
||||
$db_name = ( preg_match("/^(3\.23\.[6-9])|(3\.23\.[1-9][1-9])|(4\.)|(5\.)/", $version) ) ? "`$dbname`" : $dbname;
|
||||
|
||||
$sql = "SHOW TABLE STATUS
|
||||
FROM " . $db_name;
|
||||
|
Loading…
x
Reference in New Issue
Block a user