RT#765026, patch for null values in civicrm_acl_cache
authorLisa Marie Maginnis <lisam@fsf.org>
Mon, 21 Sep 2015 17:15:03 +0000 (13:15 -0400)
committerMichael McMahon <michael@fsf.org>
Tue, 27 Sep 2022 21:05:21 +0000 (17:05 -0400)
CRM/ACL/BAO/Cache.php

index 2bcce46abd6623a6a8168f2f308784e14a52c7bc..97a92f5318bd3193ce6cde8f4255ce83e45e5eec 100644 (file)
@@ -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);