* Fix bug #42958, fix undefined parameter error.

This commit is contained in:
liumengyi
2024-01-03 10:34:31 +08:00
parent 886ec75713
commit a8db00a00d
+2 -2
View File
@@ -541,7 +541,7 @@ class todoZen extends todo
unset($todoData->config['week'], $todoData->config['month']);
if(empty($todoData->config['specifiedDate']))
{
if(!$todoData->config['day'])
if(empty($todoData->config['day']))
{
dao::$errors['config[day]'] = sprintf($this->lang->error->notempty, $this->lang->todo->cycleDaysLabel);
return false;
@@ -570,7 +570,7 @@ class todoZen extends todo
$todoData->config['month'] = implode(',', $todoData->config['month']);
}
if($todoData->config['beforeDays'] and !validater::checkInt($todoData->config['beforeDays']))
if(!empty($todoData->config['beforeDays']) && !validater::checkInt($todoData->config['beforeDays']))
{
dao::$errors['config[beforeDays]'] = sprintf($this->lang->error->int[0], $this->lang->todo->beforeDaysLabel);
return false;