From 9ecbdf4971fea69c525c7e2df70135abc7ccf973 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Dewitte?= Date: Fri, 1 Mar 2013 15:51:15 +0100 Subject: [PATCH] better with strict comparison --- lib/Cake/Model/CakeSchema.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Cake/Model/CakeSchema.php b/lib/Cake/Model/CakeSchema.php index 03055941f..f33ec4c34 100644 --- a/lib/Cake/Model/CakeSchema.php +++ b/lib/Cake/Model/CakeSchema.php @@ -626,7 +626,7 @@ class CakeSchema extends Object { 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'])) {