Unverified Commit 56baacce authored by IKEDA Soji's avatar IKEDA Soji Committed by GitHub
Browse files

Merge pull request #752 from ikedas/issue-749 by ikedas

Error message "Use of uninitialized value $2" while instancing family lists (#749)
parents 4d3ae352 fcc912d6
......@@ -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',
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment