diff --git a/phpgwapi/inc/class.acl.inc.php b/phpgwapi/inc/class.acl.inc.php
index d5353de9e7..d0e54d0068 100644
--- a/phpgwapi/inc/class.acl.inc.php
+++ b/phpgwapi/inc/class.acl.inc.php
@@ -379,7 +379,6 @@ It should use the values in the $this->data
       $rights = 0;
       if ($this->db->num_rows() == 0 ){ return False; }
       while ($this->db->next_record()) {
-	     $rights = 0;
         $rights |= $this->db->f('acl_rights');
         if (!!($rights & $required) == True){
           $accounts[] = intval($this->db->f('acl_account'));