minor fix
authormonishdeb <monish.deb@webaccessglobal.com>
Wed, 5 Nov 2014 09:36:53 +0000 (15:06 +0530)
committermonishdeb <monish.deb@webaccessglobal.com>
Thu, 13 Nov 2014 10:51:50 +0000 (16:21 +0530)
CRM/Core/BAO/ActionSchedule.php

index dbba925970ff4afb4dd8f38f4317b60a81cbfbed..99a023e05b973b5da5d455b077b57d880410818c 100755 (executable)
@@ -1299,7 +1299,7 @@ INNER JOIN {$reminderJoinClause}
           CRM_Core_DAO::executeQuery($query, array(1 => array($actionSchedule->id, 'Integer')));
         }
 
-        if (!empty($limitTo) && $limitTo == 0) {
+        if (!is_null($limitTo) && $limitTo == 0) {
           $addSelect .= ', MAX(reminder.action_date_time) as latest_log_time';
           $sqlEndEventCheck = "
 SELECT * FROM {$table}