Merge remote-tracking branch 'upstream/4.4' into 4.4-master-2014-03-03-17-36-50
[civicrm-core.git] / api / v3 / ActionSchedule.php
index 46b7cef59d3b0225763a243d3c1abb956509a6c1..5d1e145013d1384fa3229a6a330cc1c0bf942ecf 100644 (file)
@@ -60,7 +60,7 @@ function civicrm_api3_action_schedule_get($params) {
  * {@getfields action_schedule_create}
  */
 function civicrm_api3_action_schedule_create($params) {
-  if (!CRM_Utils_Array::value('id', $params)) {
+  if (empty($params['id'])) {
     // an update does not require any mandatory parameters
     civicrm_api3_verify_one_mandatory($params,
       NULL,