Skip to content

Commit

Permalink
prevent NULL in fixture files
Browse files Browse the repository at this point in the history
  • Loading branch information
AD7six committed May 9, 2012
1 parent d1f522e commit 0c4613f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/Cake/Model/CakeSchema.php
Expand Up @@ -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}";
}
}
Expand Down

0 comments on commit 0c4613f

Please sign in to comment.