diff --git a/ChangeLog b/ChangeLog index d83deaf692..ff7e82e9a7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -2,6 +2,7 @@ phpMyAdmin - ChangeLog ====================== 4.2.0.0 (not yet released) ++ rfe #1473 Transformation to convert Boolean value to text 4.1.0.0 (not yet released) + rfe #499 On user creation, warn if the user already exists diff --git a/libraries/plugins/transformations/abstract/Bool2TextTransformationsPlugin.class.php b/libraries/plugins/transformations/abstract/Bool2TextTransformationsPlugin.class.php index 11519b9454..5385c6911a 100644 --- a/libraries/plugins/transformations/abstract/Bool2TextTransformationsPlugin.class.php +++ b/libraries/plugins/transformations/abstract/Bool2TextTransformationsPlugin.class.php @@ -46,11 +46,17 @@ abstract class Bool2TextTransformationsPlugin extends TransformationsPlugin public function applyTransformation($buffer, $options = array(), $meta = '') { error_log('apply'); - if ( ! isset($options[0]) ) $options[0] = 'T'; // default true option - if ( ! isset($options[1]) ) $options[1] = 'F'; // default false option - - if ( $buffer == '0' ) return $options[1]; // return false label - return $options[0]; // or true one if nonzero + if (! isset($options[0])) { + $options[0] = 'T'; // default true option + } + if (! isset($options[1])) { + $options[1] = 'F'; // default false option + } + + if ($buffer == '0') { + return $options[1]; // return false label + } + return $options[0]; // or true one if nonzero } /**