We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8ab3a5c commit 8e2fdc1Copy full SHA for 8e2fdc1
includes/classes/API.php
@@ -1053,7 +1053,7 @@ private function patch($query, $db = null)
1053
if (is_array($value)) {
1054
$value = serialize($value);
1055
}
1056
- if (is_string($value) && strtolower($value) == 'null') {
+ if (is_string($value) && strtolower($value) === 'null') {
1057
$value = null;
1058
1059
$key = ':' . $key;
@@ -1069,9 +1069,6 @@ private function patch($query, $db = null)
1069
foreach ($where_values as $key => $value) {
1070
1071
$sql_compiled = self::debugCompileSQL($sql_compiled, $key, $value);
1072
- if (empty($value)) {
1073
- $value = null;
1074
- }
1075
$sth->bindValue($key, $value);
1076
1077
0 commit comments