From 181c1caabf903bfed54fac1f37b7f8b294efe78e Mon Sep 17 00:00:00 2001 From: Ken West Date: Tue, 21 Apr 2015 09:10:31 +1000 Subject: [PATCH] CRM-16324 Scheduled jobs won't accept zero-valued parameters --- CRM/Core/ScheduledJob.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Core/ScheduledJob.php b/CRM/Core/ScheduledJob.php index 6872ba2365..3b3543493b 100644 --- a/CRM/Core/ScheduledJob.php +++ b/CRM/Core/ScheduledJob.php @@ -67,7 +67,7 @@ class CRM_Core_ScheduledJob { foreach ($lines as $line) { $pair = explode("=", $line); - if (empty($pair[0]) || empty($pair[1])) { + if ($pair === false || count($pair) != 2 || trim($pair[0]) == '' || trim($pair[1]) == '') { $this->remarks[] .= 'Malformed parameters!'; break; } -- 2.25.1