- Fix coding style
- Add ChangeLog entry
This commit is contained in:
parent
196b720b7d
commit
b7d8bd7dea
@ -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
|
||||
|
||||
@ -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
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Loading…
Reference in New Issue
Block a user