Skip to content

Commit

Permalink
accesslib: MDL-22089 Unassigning role from one user causes warning to…
Browse files Browse the repository at this point in the history
… happen

The 3rd parameter to role_unassign() was renamed to $groupid_ignored some weeks
ago (as part of MDL-21655), but the $args array that is used to build the query
was not updated to reflect that change. Simply remove 'groupid' from the $args
array so it isn't used in the query at all.
  • Loading branch information
iarenaza committed May 2, 2010
1 parent 71720ab commit 57e9d92
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/accesslib.php
Original file line number Diff line number Diff line change
Expand Up @@ -2802,7 +2802,7 @@ function role_unassign($roleid=0, $userid=0, $groupid_ignored=0, $contextid=0, $
global $USER, $CFG, $DB;
require_once($CFG->dirroot.'/group/lib.php');

$args = array('roleid', 'userid', 'groupid', 'contextid');
$args = array('roleid', 'userid', 'contextid');
$select = array();
$params = array();

Expand Down

0 comments on commit 57e9d92

Please sign in to comment.