diff --git a/data/CRMEntity.php b/data/CRMEntity.php
index 49045999cfe143d9e5660ff73ba16541b6e55b6d..45f691c26db068a16c6bd2a79f38a91796c28b17 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
+}