Skip to content

Commit

Permalink
Error message "Use of uninitialized value $2" while instancing family…
Browse files Browse the repository at this point in the history
  • Loading branch information
ikedas committed Sep 16, 2019
1 parent 4d3ae35 commit fcc912d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/Sympa/DataSource.pm
Original file line number Diff line number Diff line change
Expand Up @@ -241,8 +241,8 @@ sub is_allowed_to_sync {
unless ($range =~
/^([012]?[0-9])(?:\:([0-5][0-9]))?-([012]?[0-9])(?:\:([0-5][0-9]))?$/
);
my $start = 60 * int($1) + int($2);
my $end = 60 * int($3) + int($4);
my $start = 60 * int($1) + int($2 // 0);
my $end = 60 * int($3) + int($4 // 0);
$end += 24 * 60 if ($end < $start);

$log->syslog('debug',
Expand Down

0 comments on commit fcc912d

Please sign in to comment.