Skip to content

Commit

Permalink
Resource::check08DateRanges(): one more typo fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
zozlak committed Oct 29, 2024
1 parent 1212107 commit 7ebfbef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/acdhOeaw/arche/doorkeeper/Resource.php
Original file line number Diff line number Diff line change
Expand Up @@ -587,7 +587,7 @@ public function check08DateRanges(): void {
$start = array_pop($startValues);
$end = array_pop($endValues);
$negate = str_starts_with($start, '-') && str_starts_with($end, '-');
if ($negate ? $start > $end : $start < $end) {
if ($negate ? $start < $end : $start > $end) {
throw new DoorkeeperException("Start date after the end date for $prop/$endProp ($start > $end)");
}
}
Expand Down

0 comments on commit 7ebfbef

Please sign in to comment.