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)
committerAndrew Engelbrecht <andrew@fsf.org>
Mon, 23 Oct 2017 20:51:12 +0000 (16:51 -0400)
CRM/ACL/BAO/Cache.php

index 3d7c6d5c32beb7fef5f0b1cde83748041abe514c..366bbc0ee9e77396e886be24bfebae51e6f7d22b 100644 (file)
@@ -77,13 +77,15 @@ SELECT acl_id
 ";
     $params = array(1 => array($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);