From: Lisa Marie Maginnis Date: Mon, 21 Sep 2015 17:15:03 +0000 (-0400) Subject: RT#765026, patch for null values in civicrm_acl_cache X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=9a2e2287e32da889475ab3d9eec0f348d07cdf14;p=civicrm-core.git RT#765026, patch for null values in civicrm_acl_cache --- 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);