mirror of
https://github.com/webmin/webmin.git
synced 2026-06-20 03:10:30 +01:00
Don't check fields that don't exist https://github.com/webmin/webmin/issues/553
This commit is contained in:
@@ -20,8 +20,9 @@ sub find_cron_job
|
||||
{
|
||||
&foreign_require("cron", "cron-lib.pl");
|
||||
my @jobs = &cron::list_cron_jobs();
|
||||
my ($job) = grep { $_->{'command'} eq $cron_cmd &&
|
||||
$_->{'user'} eq 'root' } @jobs;
|
||||
my ($job) = grep { $_->{'command'} && $_->{'user'} &&
|
||||
$_->{'command'} eq $cron_cmd &&
|
||||
$_->{'user'} eq 'root' } @jobs;
|
||||
return $job;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user