diff -Nur smeserver-crontab_manager-2.4.old/root/usr/share/perl5/vendor_perl/esmith/FormMagick/Panel/cronmanager.pm smeserver-crontab_manager-2.4/root/usr/share/perl5/vendor_perl/esmith/FormMagick/Panel/cronmanager.pm --- smeserver-crontab_manager-2.4.old/root/usr/share/perl5/vendor_perl/esmith/FormMagick/Panel/cronmanager.pm 2013-03-05 19:11:08.000000000 +0100 +++ smeserver-crontab_manager-2.4/root/usr/share/perl5/vendor_perl/esmith/FormMagick/Panel/cronmanager.pm 2014-06-08 05:03:20.159117931 +0200 @@ -222,7 +222,7 @@ sub change_cron_entry { my ($self) = @_; my $name = $self->cgi->param('name'); - my $id = $self->cgi->param('id'); + my $id = $self->cgi->param('id') || ""; my $action = $self->cgi->param('action2'); $self->wherenext('First'); @@ -448,7 +448,7 @@ sub give_numeric { my ($self, $fld) = @_; - my $id = $self->cgi->param('id'); + my $id = $self->cgi->param('id') || ""; my %conf; tie %conf, 'esmith::config'; @@ -625,7 +625,7 @@ sub give_bool { my ($self, $fld) = @_; - my $id = $self->cgi->param('id'); + my $id = $self->cgi->param('id') || ""; my %conf; tie %conf, 'esmith::config'; @@ -636,11 +636,14 @@ my @cron_entry; my $cron_entry; my $ret; - + my $fld_value; + $value=db_get_prop(\%conf, "cronmanager","task$id") || ""; @cron_entry=split(/,/, $value); + + $fld_value=$cron_entry[$fld] || ""; - if ($cron_entry[$fld] eq 'YES') { + if ($fld_value eq 'YES') { $ret="YES"; } else { $ret="NO";