Skip to content

Commit

Permalink
fixed issue: Undefined index: plusminus sabre-io#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 1afdbb5 commit 1337f89
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 @@ -104,7 +104,7 @@ public static function parseDuration($duration, $asString = false)
if (!$asString) {
$invert = false;

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

Expand Down

0 comments on commit 1337f89

Please sign in to comment.