- Fix coding style

- Add ChangeLog entry
This commit is contained in:
Marc Delisle 2013-12-03 12:47:45 -05:00
parent 196b720b7d
commit b7d8bd7dea
2 changed files with 12 additions and 5 deletions

View File

@ -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

View File

@ -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
}
/**