Skip to content
Snippets Groups Projects
Commit 82a837e9 authored by pratik.joshi's avatar pratik.joshi
Browse files

fix for notice found while QA of CRM-12348, and added a missing execute statement

parent 4c75f47d
No related branches found
No related tags found
No related merge requests found
......@@ -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)) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment