From 418130f4cd4df382fe58fd3d11edfe5913fe59d2 Mon Sep 17 00:00:00 2001 From: hide_d Date: Tue, 17 Apr 2018 22:44:39 +0900 Subject: [PATCH] =?UTF-8?q?bool=20=EB=B3=80=ED=99=98=EC=97=90=EC=84=9C=20f?= =?UTF-8?q?alse=20=EC=A1=B0=EA=B1=B4=20=ED=95=98=EB=82=98=20=EB=8D=94=20?= =?UTF-8?q?=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/sammo/Util.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sammo/Util.php b/src/sammo/Util.php index ff33e686..2f4cbf4a 100644 --- a/src/sammo/Util.php +++ b/src/sammo/Util.php @@ -34,7 +34,7 @@ class Util extends \utilphp\util if ($type === 'bool') { $value = strtolower($value); - if ($value === 'off' || $value === 'false' || $value === 'no' || $value === 'n' || $value === 'x' || $value === 'null') { + if ($value === '' || $value === 'off' || $value === 'false' || $value === 'no' || $value === 'n' || $value === 'x' || $value === 'null') { return false; } return !!$value;