mirror of
https://github.com/webmin/webmin.git
synced 2026-05-04 22:30:33 +01:00
Avoid perl warnings
This commit is contained in:
@@ -244,7 +244,7 @@ return undef;
|
||||
|
||||
sub number_to_weekday
|
||||
{
|
||||
return ucfirst($weekday_names[$_[0]]);
|
||||
return defined($_[0]) ? ucfirst($weekday_names[$_[0]]) : undef;
|
||||
}
|
||||
|
||||
# Returns 1 if this system supports setting the hardware clock.
|
||||
|
||||
Reference in New Issue
Block a user