diff --git a/include/class_userinfo.inc b/include/class_userinfo.inc
index 59a6ea7df7ba81d37d9c45e6a11e309f4e5335ce..cfdb96634b16e3ef79e06044658e90f6241bc0f8 100644
--- a/include/class_userinfo.inc
+++ b/include/class_userinfo.inc
@@ -530,7 +530,7 @@ class userinfo
       $adn = preg_replace("/^[^,]*+,/", "", $adn);
     }
     if (isset($this->ACLperPath[$adn])) {
-      $ACL = $this->ACLperPath[$adn];
+      $ACLs = $this->ACLperPath[$adn];
     } else {
       $ACL_CACHE["$dn+$object+$attribute"] = '';
       return '';
@@ -575,10 +575,10 @@ class userinfo
         $cpath = $element.','.$cpath;
       }
 
-      if (isset($ACL[$cpath])) {
+      if (isset($ACLs[$cpath])) {
 
         /* Inspect this ACL, place the result into ACL */
-        foreach ($ACL[$cpath] as $subacl) {
+        foreach ($ACLs[$cpath] as $subacl) {
 
           /* Reset? Just clean the ACL and turn over to the next one... */
           if ($subacl['type'] == 'reset') {