Permalink
Browse files

prevent NULL in fixture files

  • Loading branch information...
1 parent d1f522e commit 0c4613fdd217a48faebe23085839d01b8c47cd0a @AD7six AD7six committed May 1, 2012
Showing with 3 additions and 0 deletions.
  1. +3 −0 lib/Cake/Model/CakeSchema.php
@@ -577,6 +577,9 @@ protected function _values($values) {
$vals[] = "'{$key}' => array('" . implode("', '", $val) . "')";
} elseif (!is_numeric($key)) {
$val = var_export($val, true);
+ if ($val === 'NULL') {
+ $val = 'null';
+ }
$vals[] = "'{$key}' => {$val}";
}
}

0 comments on commit 0c4613f

Please sign in to comment.