File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed
Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change 3535$ ui ->setVars ($ vars );
3636$ ui ->setupAddForm ($ permission );
3737
38- if ($ ui ->validateAddForm ($ info )) {
38+ if ($ info = $ ui ->validateAddForm ($ info )) {
3939 try {
4040 if ($ info ['perm_id ' ] == Horde_Perms::ROOT ) {
4141 $ child = $ corePerms ->newPermission ($ info ['child ' ]);
Original file line number Diff line number Diff line change 2323$ corePerms = $ injector ->getInstance ('Horde_Core_Perms ' );
2424$ perm_id = $ vars ->get ('perm_id ' );
2525$ category = $ vars ->get ('category ' );
26-
2726/* See if we need to (and are supposed to) autocreate the permission. */
2827$ redirect = false ;
2928if ($ category !== null ) {
123122$ ui = new Horde_Core_Perms_Ui ($ perms , $ corePerms );
124123$ ui ->setVars ($ vars );
125124$ ui ->setupEditForm ($ permission );
126-
125+ $ info = [];
127126if ($ ui ->validateEditForm ($ info )) {
128127 /* Update and save the permissions. */
129128 $ permission ->updatePermissions ($ info );
You can’t perform that action at this time.
0 commit comments