Skip to content

Commit

Permalink
Merge branch 'QA_5_0'
Browse files Browse the repository at this point in the history
Signed-off-by: William Desportes <williamdes@wdes.fr>
  • Loading branch information
williamdes committed Feb 14, 2020
2 parents 573f3d5 + efcd4be commit 8f0d7d3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 8 deletions.
1 change: 1 addition & 0 deletions ChangeLog
Expand Up @@ -61,6 +61,7 @@ phpMyAdmin - ChangeLog
- issue #15795 Fix broken link on "MySQL said" error message
- issue #15781 Fix illegal string offset error on structure page of 'information_schema' database
- issue #15745 Fix version 5.0.1 suggests 4.9.4 as latest stable version
- issue #15958 Fix uncaught TypeError when sorting database tables by size or by rows

5.0.1 (2020-01-07)
- issue #15719 Fixed error 500 when browsing a table when $cfg['LimitChars'] used a string and not an int value
Expand Down
6 changes: 3 additions & 3 deletions libraries/classes/DatabaseInterface.php
Expand Up @@ -715,14 +715,14 @@ function ($a, $b) {
if ($sort_by == 'Data_length') {
foreach ($each_tables as $table_name => $table_data) {
${$sort_by}[$table_name] = strtolower(
$table_data['Data_length']
+ $table_data['Index_length']
(string) ($table_data['Data_length']
+ $table_data['Index_length'])
);
}
} else {
foreach ($each_tables as $table_name => $table_data) {
${$sort_by}[$table_name]
= strtolower($table_data[$sort_by]);
= strtolower($table_data[$sort_by] ?? '');
}
}

Expand Down
5 changes: 0 additions & 5 deletions phpstan-baseline.neon
Expand Up @@ -727,11 +727,6 @@ parameters:
count: 1
path: libraries/classes/Database/Qbe.php

-
message: "#^Parameter \\#1 \\$str of function strtolower expects string, \\(array\\|float\\|int\\) given\\.$#"
count: 1
path: libraries/classes/DatabaseInterface.php

-
message: "#^Parameter \\#2 \\$table of method PhpMyAdmin\\\\DatabaseInterface\\:\\:_cacheTableData\\(\\) expects bool\\|string, array\\|string given\\.$#"
count: 1
Expand Down

0 comments on commit 8f0d7d3

Please sign in to comment.