Add explicit parentheses in nested ternary operators

Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
This commit is contained in:
Maurício Meneghini Fauth 2019-05-22 18:32:42 -03:00
parent 3002944e24
commit dafc17c52e
2 changed files with 3 additions and 2 deletions

View File

@ -105,6 +105,7 @@ phpMyAdmin - ChangeLog
- issue Fixed editing of virtual columns on PerconaDB
- issue #13854 Fixed column options are ignored for GENERATED/VIRTUAL/STORED columns
- issue #15262 Fixed incorrect display of charset column (raw html)
- issue Added explicit parentheses in nested ternary operators
4.8.5 (2019-01-25)
- issue Developer debug data was saved to the PHP error log

View File

@ -610,9 +610,9 @@ class DatabaseInterface
function ($a, $b) {
$aLength = $a['Data_length'] + $a['Index_length'];
$bLength = $b['Data_length'] + $b['Index_length'];
return ($aLength == $bLength)
return $aLength == $bLength
? 0
: ($aLength < $bLength) ? -1 : 1;
: ($aLength < $bLength ? -1 : 1);
}
);