diff --git a/modules/oai/models/DefaultServer.php b/modules/oai/models/DefaultServer.php index f90296d56..25ade7d8b 100644 --- a/modules/oai/models/DefaultServer.php +++ b/modules/oai/models/DefaultServer.php @@ -1190,7 +1190,7 @@ public function setDocumentTypesAllowed($documentTypesAllowed) { if (is_string($documentTypesAllowed)) { $this->documentTypesAllowed = [$documentTypesAllowed]; - } else { + } elseif (is_array($documentTypesAllowed)) { $this->documentTypesAllowed = $documentTypesAllowed; } } @@ -1214,7 +1214,7 @@ public function setDocumentStatesAllowed($documentStatesAllowed) { if (is_string($documentStatesAllowed)) { $this->documentStatesAllowed = [$documentStatesAllowed]; - } else { + } elseif (is_array($documentStatesAllowed)) { $this->documentStatesAllowed = $documentStatesAllowed; } }