From 4e9e4c471094cb4621171bada7df1e4ba82a7f4c Mon Sep 17 00:00:00 2001 From: Lisa Marie Maginnis Date: Mon, 21 Sep 2015 13:15:03 -0400 Subject: [PATCH] RT#765026, patch for null values in civicrm_acl_cache --- CRM/ACL/BAO/Cache.php | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/CRM/ACL/BAO/Cache.php b/CRM/ACL/BAO/Cache.php index 3d7c6d5c32..366bbc0ee9 100644 --- a/CRM/ACL/BAO/Cache.php +++ b/CRM/ACL/BAO/Cache.php @@ -77,13 +77,15 @@ SELECT acl_id "; $params = array(1 => array($id, 'Integer')); -## this is related to RT#765026 -# Something is occasionally inserting records in civicrm_acl_cache with id null. That causes i -# for our anonymous visitors who want to sign petitions. -# Removed. Ward, 2012-07-20 -# if ($id == 0) { -# $query .= " OR contact_id IS NULL"; -# } + /* this is related to RT#765026 + Something is occasionally inserting records in civicrm_acl_cache with id null. + That causes i for our anonymous visitors who want to sign petitions. + Removed. Ward, 2012-07-20 */ + /* + if ($id == 0) { + query .= " OR contact_id IS NULL"; + } + t*/ $dao = CRM_Core_DAO::executeQuery($query, $params); -- 2.25.1