Skip to content

Commit

Permalink
fixed issue: Undefined index: plusminus #467
Browse files Browse the repository at this point in the history
  • Loading branch information
sash04ek authored and phil-davis committed Nov 9, 2023
1 parent 9341286 commit f1c6936
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/DateTimeParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ public static function parseDuration(string $duration): \DateInterval

$invert = false;

if ('-' === $matches['plusminus']) {
if (isset($matches['plusminus']) && '-' === $matches['plusminus']) {
$invert = true;
}

Expand Down

0 comments on commit f1c6936

Please sign in to comment.