diff --git a/include/Webservices/DataTransform.php b/include/Webservices/DataTransform.php index ecb61574b1..1c2e5898a7 100644 --- a/include/Webservices/DataTransform.php +++ b/include/Webservices/DataTransform.php @@ -107,10 +107,10 @@ public static function sanitizeForInsert($row,$meta){ } $row['contact_id'] = implode(';', $ctowsids); } - } elseif(strtolower($meta->getEntityName()) == "calendar") { - if(empty($row['sendnotification']) || strtolower($row['sendnotificaiton'])=='no' - || $row['sendnotificaiton'] == '0' || $row['sendnotificaiton'] == 'false' - || strtolower($row['sendnotificaiton']) == 'n') { + } elseif (strtolower($meta->getEntityName()) == "calendar") { + if (empty($row['sendnotification']) || strtolower($row['sendnotification'])=='no' + || $row['sendnotification'] == '0' || $row['sendnotification'] == 'false' + || strtolower($row['sendnotification']) == 'n') { unset($row['sendnotification']); } }