diff --git a/html/modules/custom/reliefweb_entities/src/DocumentTrait.php b/html/modules/custom/reliefweb_entities/src/DocumentTrait.php index 20d5f4944..d3f366cf3 100644 --- a/html/modules/custom/reliefweb_entities/src/DocumentTrait.php +++ b/html/modules/custom/reliefweb_entities/src/DocumentTrait.php @@ -353,7 +353,7 @@ public function getReferencedEntityIds($field) { * @see Drupal\reliefweb_entities\DocumentInterface::createDate() */ public function createDate($date) { - if (is_scalar($date) && $date !== '') { + if (is_scalar($date) && $date === '') { return NULL; } $date = is_numeric($date) ? '@' . $date : $date;