var_export dumps null as NULL

correct for that so code standards are met with the results
This commit is contained in:
AD7six 2012-05-09 16:08:50 +02:00
parent 5ef2a0100b
commit 3a5e00fa53

View file

@ -362,6 +362,9 @@ class FixtureTask extends BakeTask {
$values = array();
foreach ($record as $field => $value) {
$val = var_export($value, true);
if ($val === 'NULL') {
$val = 'null';
}
$values[] = "\t\t\t'$field' => $val";
}
$out .= "\t\tarray(\n";