From: Pratik Joshi Date: Tue, 16 Apr 2013 10:04:08 +0000 (+0530) Subject: fix for notice found while QA of CRM-12348, and added a missing execute statement X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=82a837e9319640886c39d26265783f8785516546;p=civicrm-core.git fix for notice found while QA of CRM-12348, and added a missing execute statement --- 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)) {