Strict identical condition required

Otherwise this condition matches a numeric value of 0.
This commit is contained in:
FusionPBX
2023-05-19 15:29:38 -06:00
committed by GitHub
parent 672dc9fa4d
commit 25fdc12f18

View File

@@ -2222,7 +2222,7 @@
foreach ($array as $array_key => $array_value) {
if (!is_array($array_value) && $array_key != $parent_key_name) {
$array_key = self::sanitize($array_key);
if (!isset($array_value) || $array_value == '') {
if (!isset($array_value) || (isset($array_value) && $array_value === '')) {
$sql .= $array_key." = null, ";
}
elseif ($array_value === "now()") {