mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-07 20:08:53 +00:00
[ticket/16629] Fix ACP get_database_size() for MySql 8
PHPBB3-16629
This commit is contained in:
parent
3d1874adcc
commit
62115f378a
1 changed files with 3 additions and 1 deletions
|
@ -2843,8 +2843,8 @@ function get_database_size()
|
|||
{
|
||||
case 'mysqli':
|
||||
$mysql_engine = ['MyISAM', 'InnoDB', 'Aria'];
|
||||
|
||||
$db_name = $db->get_db_name();
|
||||
$database_size = 0;
|
||||
|
||||
$sql = 'SHOW TABLE STATUS
|
||||
FROM ' . $db_name;
|
||||
|
@ -2860,6 +2860,8 @@ function get_database_size()
|
|||
|
||||
$db->sql_freeresult($result);
|
||||
|
||||
$database_size = $database_size ? $database_size : false;
|
||||
|
||||
break;
|
||||
|
||||
case 'sqlite3':
|
||||
|
|
Loading…
Add table
Reference in a new issue