RT#765026, patch for null values in civicrm_acl_cache
[civicrm-core.git] / CRM / ACL / BAO / Cache.php
index eac03d8b101fccb86b03b316d788eb2d26828210..97a92f5318bd3193ce6cde8f4255ce83e45e5eec 100644 (file)
@@ -64,9 +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";
+       query .= " OR contact_id IS NULL";
     }
+    t*/
 
     $dao = CRM_Core_DAO::executeQuery($query, $params);