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>
Wed, 11 Apr 2018 21:15:55 +0000 (17:15 -0400)
CRM/ACL/BAO/Cache.php

index 3f7cc9c69670122551b70466ab5a1aae70e44997..ee7730ae9549c90d67230aecff23490c250c89fc 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);