From 3f1bd55b971b092697aacb14835d52d621f949f4 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 2bcce46abd..97a92f5318 100644 --- a/CRM/ACL/BAO/Cache.php +++ b/CRM/ACL/BAO/Cache.php @@ -64,13 +64,15 @@ SELECT acl_id "; $params = [1 => [$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