From 395dce4972ef344d099b78a70c53f9b4d38066c1 Mon Sep 17 00:00:00 2001 From: prasad <prasad@vtiger.com> Date: Wed, 14 Feb 2018 00:23:58 +0530 Subject: [PATCH] Fixes #226: Strict type equality check with number vs string --- data/CRMEntity.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/data/CRMEntity.php b/data/CRMEntity.php index 49045999c..45f691c26 100755 --- a/data/CRMEntity.php +++ b/data/CRMEntity.php @@ -493,7 +493,7 @@ class CRMEntity { } if (isset($this->column_fields[$fieldname])) { if ($uitype == 56) { - if ($this->column_fields[$fieldname] == 'on' || $this->column_fields[$fieldname] == 1) { + if ($this->column_fields[$fieldname] === 'on' || $this->column_fields[$fieldname] == 1) { $fldvalue = '1'; } else { $fldvalue = '0'; @@ -3003,4 +3003,4 @@ class TrackableObject implements ArrayAccess, IteratorAggregate { function getColumnFieldNames(){ return array_keys($this->storage); } -} \ No newline at end of file +} -- GitLab