mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
prevent NULL in fixture files
This commit is contained in:
parent
d1f522e53a
commit
0c4613fdd2
1 changed files with 3 additions and 0 deletions
|
@ -577,6 +577,9 @@ class CakeSchema extends Object {
|
|||
$vals[] = "'{$key}' => array('" . implode("', '", $val) . "')";
|
||||
} elseif (!is_numeric($key)) {
|
||||
$val = var_export($val, true);
|
||||
if ($val === 'NULL') {
|
||||
$val = 'null';
|
||||
}
|
||||
$vals[] = "'{$key}' => {$val}";
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue