Skip to content

Commit

Permalink
better with strict comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
remidewitte committed Mar 1, 2013
1 parent e2e5dfb commit 9ecbdf4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Cake/Model/CakeSchema.php
Expand Up @@ -626,7 +626,7 @@ protected function _columns(&$Obj) {
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']);
}
if (empty($value['length'])) {
Expand Down

0 comments on commit 9ecbdf4

Please sign in to comment.