From ef35cfe1affbf2762f8b5461a64cd5207c2275a0 Mon Sep 17 00:00:00 2001 From: nathan Date: Mon, 9 Sep 2024 10:42:51 -0600 Subject: [PATCH] Import/export: Avoid "Unable to schedule" error if schedule part contains whitespace --- importexport/inc/class.importexport_schedule_ui.inc.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/importexport/inc/class.importexport_schedule_ui.inc.php b/importexport/inc/class.importexport_schedule_ui.inc.php index 40e079ea4f..cc56803c93 100644 --- a/importexport/inc/class.importexport_schedule_ui.inc.php +++ b/importexport/inc/class.importexport_schedule_ui.inc.php @@ -113,7 +113,10 @@ class importexport_schedule_ui // Remove any left blank foreach($schedule as $key => &$value) { - if($value == '') unset($schedule[$key]); + if(trim($value) == '') + { + unset($schedule[$key]); + } } $result = $async->set_timer( $schedule,