From 82a837e9319640886c39d26265783f8785516546 Mon Sep 17 00:00:00 2001 From: Pratik Joshi Date: Tue, 16 Apr 2013 15:34:08 +0530 Subject: [PATCH] fix for notice found while QA of CRM-12348, and added a missing execute statement --- CRM/Contact/BAO/GroupContactCache.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CRM/Contact/BAO/GroupContactCache.php b/CRM/Contact/BAO/GroupContactCache.php index 5d060e5655..e9a7345607 100644 --- a/CRM/Contact/BAO/GroupContactCache.php +++ b/CRM/Contact/BAO/GroupContactCache.php @@ -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)) { -- 2.25.1