diff --git a/src/presentation/maarchRM/Presenter/recordsManagement/archive.php b/src/presentation/maarchRM/Presenter/recordsManagement/archive.php index c853a194a91edfc6e7f1bed0a725c813bf0259a3..1d4e4dfbaf52809746a2bcb39561a35e03b7a40b 100755 --- a/src/presentation/maarchRM/Presenter/recordsManagement/archive.php +++ b/src/presentation/maarchRM/Presenter/recordsManagement/archive.php @@ -296,7 +296,7 @@ class archive /** * Returns the presenter for archive description object, or null * @param string $descriptionClass The name of the description class used by archive - * + * * @return object|null */ protected function getPresenter($descriptionClass) @@ -1100,9 +1100,11 @@ class archive } if ($type == "date") { - $dateObject = \laabs::newDate($value); - $textValue = $this->view->dateTimeFormatter->formatDate($dateObject); - + $textValue = ""; + if (!empty($value)) { + $dateObject = \laabs::newDate($value); + $textValue = $this->view->dateTimeFormatter->formatDate($dateObject); + } $valueNode = $this->view->createTextNode($textValue); } elseif ($type == 'boolean') { $valueNode = $this->view->createElement('i');