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>
Thu, 21 Nov 2019 20:45:28 +0000 (15:45 -0500)
CRM/ACL/BAO/Cache.php

index 9908034f0905f1b82ac37060872e572024652437..ff0dcf1a9e24d05ecbcb923d2e9d47538ff2d544 100644 (file)
@@ -77,13 +77,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);