From: Ken West Date: Mon, 20 Apr 2015 23:10:31 +0000 (+1000) Subject: CRM-16324 Scheduled jobs won't accept zero-valued parameters X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=181c1caabf903bfed54fac1f37b7f8b294efe78e;p=civicrm-core.git CRM-16324 Scheduled jobs won't accept zero-valued parameters --- 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; }