Browse Source

var_export dumps null as NULL

correct for that so code standards are met with the results
AD7six 14 years ago
parent
commit
3a5e00fa53
1 changed files with 3 additions and 0 deletions
  1. 3 0
      lib/Cake/Console/Command/Task/FixtureTask.php

+ 3 - 0
lib/Cake/Console/Command/Task/FixtureTask.php

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