From: Roan Kattouw Date: Tue, 11 Sep 2007 19:41:45 +0000 (+0000) Subject: Fixing very stupid typo in Special:Userrights, which allowed all sysops to add and... X-Git-Tag: 1.31.0-rc.0~51411 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/?a=commitdiff_plain;h=d70d7cf21afb09e714242a1ee8d1b82e15ce23b3;p=lhc%2Fweb%2Fwiklou.git Fixing very stupid typo in Special:Userrights, which allowed all sysops to add and remove everyone to and from every group. --- diff --git a/includes/SpecialUserrights.php b/includes/SpecialUserrights.php index b97e5168ea..5abcfa7863 100644 --- a/includes/SpecialUserrights.php +++ b/includes/SpecialUserrights.php @@ -326,7 +326,7 @@ class UserrightsForm extends HTMLForm { foreach ($addergroups as $addergroup) { $groups = array_merge_recursive( - $groups, $this->changeableByGroup($addergroup) + $groups, $this->changeableByGroup($addergroups) ); $groups['add'] = array_unique( $groups['add'] ); $groups['remove'] = array_unique( $groups['remove'] ); @@ -399,4 +399,4 @@ class UserrightsForm extends HTMLForm { $viewer->showList( $output ); } -} \ No newline at end of file +}