Do not try to quote null value for SQL

This commit is contained in:
ByteHamster 2022-03-04 18:24:47 +01:00
parent c9f2b688b7
commit 0f6c7f6942

View file

@ -178,9 +178,13 @@ abstract class Database extends \Flake\Core\FLObject {
foreach ($arr as $k => $v) {
if ($noQuote === false || !in_array($k, $noQuote)) {
if ($v === null) {
$arr[$k] = "NULL";
} else {
$arr[$k] = $this->fullQuote($v, $table);
}
}
}
return $arr;
}