X-Git-Url: https://git.cyclocoop.org/?a=blobdiff_plain;ds=sidebyside;f=includes%2Fapi%2FApiUserrights.php;h=3aaae70483c1968b5752aa20364508a7c8d98079;hb=bb915b0776c656b89ed5c14352ff92dfb07ce8f2;hp=89ec6cbdbc6bc94d29d50bda827b3ec4f3324497;hpb=eb70451cec6409526c8feaedf55700f51e10ffe7;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/api/ApiUserrights.php b/includes/api/ApiUserrights.php index 89ec6cbdbc..3aaae70483 100644 --- a/includes/api/ApiUserrights.php +++ b/includes/api/ApiUserrights.php @@ -112,6 +112,7 @@ class ApiUserrights extends ApiBase { $form = $this->getUserRightsPage(); $form->setContext( $this->getContext() ); + $r = []; $r['user'] = $user->getName(); $r['userid'] = $user->getId(); list( $r['added'], $r['removed'] ) = $form->doSaveUserGroups(