Add ChangeLog entry for #17586

Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
This commit is contained in:
Maurício Meneghini Fauth 2022-06-11 14:04:58 -03:00
parent bc61c2f8c3
commit bf084233ea
No known key found for this signature in database
GPG Key ID: 6A16FD38AFC89CC8
4 changed files with 6 additions and 16 deletions

View File

@ -14,6 +14,7 @@ phpMyAdmin - ChangeLog
- issue #17366 Fix refresh rate popup on Monitor page
- issue #17577 Fix monitor charts size on RTL languages
- issue #17121 Fix password_hash function incorrectly adding single quotes to password before hashing
- issue #17586 Fix statistics not showing for empty databases
5.2.0 (2022-05-10)
- issue #16521 Upgrade Bootstrap to version 5

View File

@ -255,8 +255,8 @@ class DatabasesController extends AbstractController
$statistics = $this->getStatisticsColumns();
if ($this->hasStatistics) {
foreach (array_keys($statistics) as $key) {
$statistics[$key]['raw'] = (int) $database[$key] ?? 0;
$totalStatistics[$key]['raw'] += (int) $database[$key] ?? 0;
$statistics[$key]['raw'] = (int) ($database[$key] ?? 0);
$totalStatistics[$key]['raw'] += (int) ($database[$key] ?? 0);
}
}

View File

@ -1345,11 +1345,6 @@ parameters:
count: 1
path: libraries/classes/Controllers/Server/BinlogController.php
-
message: "#^Expression on left side of \\?\\? is not nullable\\.$#"
count: 1
path: libraries/classes/Controllers/Server/DatabasesController.php
-
message: "#^Method PhpMyAdmin\\\\Controllers\\\\Server\\\\DatabasesController\\:\\:getDatabases\\(\\) has parameter \\$primaryInfo with no value type specified in iterable type array\\.$#"
count: 1

View File

@ -2402,7 +2402,8 @@
<MixedArgumentTypeCoercion occurrences="1">
<code>['db' =&gt; $database['SCHEMA_NAME']]</code>
</MixedArgumentTypeCoercion>
<MixedArrayAccess occurrences="13">
<MixedArrayAccess occurrences="14">
<code>$database[$key]</code>
<code>$database[$key]</code>
<code>$database['DEFAULT_COLLATION_NAME']</code>
<code>$database['SCHEMA_NAME']</code>
@ -2425,13 +2426,12 @@
<code>$databases[$database['SCHEMA_NAME']]</code>
<code>$databases[$database['SCHEMA_NAME']]</code>
</MixedArrayOffset>
<MixedAssignment occurrences="7">
<MixedAssignment occurrences="6">
<code>$database</code>
<code>$key</code>
<code>$key</code>
<code>$key</code>
<code>$key</code>
<code>$statistics[$key]['raw']</code>
<code>$totalStatistics[$key]['raw']</code>
</MixedAssignment>
<MixedOperand occurrences="1">
@ -2446,12 +2446,6 @@
<code>$sortBy</code>
<code>$sortOrder</code>
</PropertyNotSetInConstructor>
<RedundantCondition occurrences="1">
<code>(int) $database[$key]</code>
</RedundantCondition>
<TypeDoesNotContainNull occurrences="1">
<code>0</code>
</TypeDoesNotContainNull>
</file>
<file src="libraries/classes/Controllers/Server/ExportController.php">
<MixedArgument occurrences="6">