Skip to content

Commit

Permalink
Resource::check08DateRanges(): typo fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
zozlak committed Oct 29, 2024
1 parent e2daa4b commit 1212107
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 @@ -586,7 +586,7 @@ public function check08DateRanges(): void {
while (count($startValues) > 0) {
$start = array_pop($startValues);
$end = array_pop($endValues);
$negate = str_starts_with($start, '-') && str_starts_with('-', $end);
$negate = str_starts_with($start, '-') && str_starts_with($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 1212107

Please sign in to comment.