From 3ca9aaf700b30d7cce022eea4f387b33e74d527c Mon Sep 17 00:00:00 2001 From: monishdeb Date: Tue, 4 Nov 2014 22:53:08 +0530 Subject: [PATCH] minor fix --- CRM/Core/BAO/ActionSchedule.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/CRM/Core/BAO/ActionSchedule.php b/CRM/Core/BAO/ActionSchedule.php index 14270f6900..dbba925970 100755 --- a/CRM/Core/BAO/ActionSchedule.php +++ b/CRM/Core/BAO/ActionSchedule.php @@ -946,7 +946,7 @@ WHERE reminder.action_schedule_id = %1 AND reminder.action_date_time IS NULL $assigneeID = CRM_Utils_Array::key('Activity Assignees', $activityContacts); $targetID = CRM_Utils_Array::key('Activity Targets', $activityContacts); - if (!empty($limitTo)) { + if (!is_null($limitTo)) { if ($limitTo == 0) { // including the activity target contacts if 'in addition' is defined $join[] = "INNER JOIN civicrm_activity_contact r ON r.activity_id = e.id AND record_type_id = {$targetID}"; @@ -1133,7 +1133,7 @@ WHERE $group.id = {$actionSchedule->group_id} $where[] = "{$contactField} IN ({$rList})"; } } - elseif (!empty($limitTo)) { + elseif (!is_null($limitTo)) { $addGroup = $addWhere = ''; if ($actionSchedule->group_id) { // CRM-13577 If smart group then use Cache table @@ -1211,7 +1211,7 @@ LEFT JOIN {$reminderJoinClause} "; CRM_Core_DAO::executeQuery($query, array(1 => array($actionSchedule->id, 'Integer'))); - if (!empty($limitTo) && $limitTo == 0 && (!empty($addGroup) || !empty($addWhere))) { + if (!is_null($limitTo) && $limitTo == 0 && (!empty($addGroup) || !empty($addWhere))) { $additionWhere = ' WHERE '; if ($actionSchedule->start_action_date) { $additionWhere = $whereClause . ' AND '; -- 2.25.1