fix for notice found while QA of CRM-12348, and added a missing execute statement
authorPratik Joshi <pratik.joshi@webaccess.co.in>
Tue, 16 Apr 2013 10:04:08 +0000 (15:34 +0530)
committerPratik Joshi <pratik.joshi@webaccess.co.in>
Tue, 16 Apr 2013 10:04:08 +0000 (15:34 +0530)
CRM/Contact/BAO/GroupContactCache.php

index 5d060e56550b8e233b79ba8670f008b72ee370be..e9a734560715234da1b7aed895bd2044946cab2e 100644 (file)
@@ -123,7 +123,7 @@ AND     ( g.cache_date IS NULL OR
     }
 
     if (!empty($refreshGroupIDs)) {
-      $refreshGroupIDString = CRM_Core_DAO::escapeString(implode(', ', $refreshGroupIDString));
+      $refreshGroupIDString = CRM_Core_DAO::escapeString(implode(', ', $refreshGroupIDs));
       $time  = CRM_Utils_Date::getUTCTime('YmdHis', $smartGroupCacheTimeout * 60);
       $query = "
 UPDATE civicrm_group g
@@ -131,6 +131,7 @@ SET    g.refresh_date = $time
 WHERE  g.id IN ( {$refreshGroupIDString} )
 AND    g.refresh_date IS NULL
 ";
+      CRM_Core_DAO::executeQuery($query);
     }
 
     if (empty($processGroupIDs)) {