Skip to content
Snippets Groups Projects
Commit 2ad83b57 authored by Jean-Laurent DUZANT's avatar Jean-Laurent DUZANT
Browse files

FIX #14279 TIME 0 unit test | fix strpos(): Passing null to parameter #1 () of type string

parent 8fd69ecc
No related branches found
No related tags found
No related merge requests found
......@@ -305,7 +305,7 @@ class DatabaseModel
$dataSet = [];
if (!empty($args['set'])) {
foreach ($args['set'] as $key => $value) {
if ($value == 'SYSDATE' || strpos($value, 'CURRENT_TIMESTAMP') !== false) {
if ($value == 'SYSDATE' || (!empty($value) && strpos($value, 'CURRENT_TIMESTAMP') !== false)) {
$querySet[] = "{$key} = {$value}";
} else {
$querySet[] = "{$key} = ?";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment