Commit ee4db0ae authored by gerv%gerv.net's avatar gerv%gerv.net

Bug 221160 - crash if illegal date specified in new charts date range. Patch by…

Bug 221160 - crash if illegal date specified in new charts date range. Patch by gerv; r=kiko, a=justdave.
parent 0cd9365d
...@@ -93,7 +93,7 @@ sub init { ...@@ -93,7 +93,7 @@ sub init {
foreach my $date ('datefrom', 'dateto') { foreach my $date ('datefrom', 'dateto') {
if ($self->{$date}) { if ($self->{$date}) {
$self->{$date} = &::str2time($self->{$date}) $self->{$date} = &::str2time($self->{$date})
|| ThrowUserError("illegal_date", { date => $self->{$date}}); || &::ThrowUserError("illegal_date", { date => $self->{$date}});
} }
} }
......
Markdown is supported
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