Add explicit parentheses in nested ternary operators
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
This commit is contained in:
parent
3002944e24
commit
dafc17c52e
@ -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
|
||||
|
||||
@ -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);
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user