This commit is contained in:
2021-11-09 11:14:51 +08:00
parent e186ebd54c
commit f3a7789184
2 changed files with 4 additions and 3 deletions
+2 -3
View File
@@ -20,9 +20,8 @@ class HashCondition extends Condition
return '';
}
foreach ($this->value as $key => $value) {
if ($value === null) {
continue;
}
if (is_null($value)) continue;
$array[] = sprintf("%s = '%s'", $key, addslashes($value));
}
return implode(' AND ', $array);