Skip to content

Commit

Permalink
#766 Now also checking for array.
Browse files Browse the repository at this point in the history
  • Loading branch information
haogatyp committed Oct 5, 2023
1 parent 42c37f6 commit 882c038
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/oai/models/DefaultServer.php
Original file line number Diff line number Diff line change
Expand Up @@ -1190,7 +1190,7 @@ public function setDocumentTypesAllowed($documentTypesAllowed)
{
if (is_string($documentTypesAllowed)) {
$this->documentTypesAllowed = [$documentTypesAllowed];
} else {
} elseif (is_array($documentTypesAllowed)) {
$this->documentTypesAllowed = $documentTypesAllowed;
}
}
Expand All @@ -1214,7 +1214,7 @@ public function setDocumentStatesAllowed($documentStatesAllowed)
{
if (is_string($documentStatesAllowed)) {
$this->documentStatesAllowed = [$documentStatesAllowed];
} else {
} elseif (is_array($documentStatesAllowed)) {
$this->documentStatesAllowed = $documentStatesAllowed;
}
}
Expand Down

0 comments on commit 882c038

Please sign in to comment.