Import/export: Avoid "Unable to schedule" error if schedule part contains whitespace

This commit is contained in:
nathan 2024-09-09 10:42:51 -06:00
parent c43681b57b
commit ef35cfe1af

View File

@ -113,7 +113,10 @@ class importexport_schedule_ui
// Remove any left blank // Remove any left blank
foreach($schedule as $key => &$value) foreach($schedule as $key => &$value)
{ {
if($value == '') unset($schedule[$key]); if(trim($value) == '')
{
unset($schedule[$key]);
}
} }
$result = $async->set_timer( $result = $async->set_timer(
$schedule, $schedule,