better with strict comparison

This commit is contained in:
Rémi Dewitte 2013-03-01 15:51:15 +01:00
parent e2e5dfb91e
commit 9ecbdf4971

View file

@ -626,7 +626,7 @@ class CakeSchema extends Object {
unset($value['limit']); unset($value['limit']);
} }
if (isset($value['default']) && ($value['default'] === '' || ($value['default'] === false && $value['type'] != 'boolean'))) { if (isset($value['default']) && ($value['default'] === '' || ($value['default'] === false && $value['type'] !== 'boolean'))) {
unset($value['default']); unset($value['default']);
} }
if (empty($value['length'])) { if (empty($value['length'])) {