diff --git a/ChangeLog b/ChangeLog index 90401f4489..3733ff9294 100644 --- a/ChangeLog +++ b/ChangeLog @@ -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 diff --git a/libraries/classes/DatabaseInterface.php b/libraries/classes/DatabaseInterface.php index 6a6ddfeb5d..6e3d998b81 100644 --- a/libraries/classes/DatabaseInterface.php +++ b/libraries/classes/DatabaseInterface.php @@ -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); } );