Small cleanup of a notification

This commit is contained in:
moodler 2006-08-09 05:37:31 +00:00
parent 4ed70f1b6e
commit aa31141173

View file

@ -928,9 +928,11 @@ function get_roles_with_capability($capability, $permission=NULL) {
* @return id - new id of the assigment * @return id - new id of the assigment
*/ */
function role_assign($roleid, $userid, $groupid, $contextid, $timestart=0, $timeend=0, $hidden=0) { function role_assign($roleid, $userid, $groupid, $contextid, $timestart=0, $timeend=0, $hidden=0) {
global $USER; global $USER, $CFG;
echo "attempting to assign roleid $roleid userid $userid contextid $contextid"; if ($CFG->debug) {
notify("Assign roleid $roleid userid $userid contextid $contextid", 'notifytiny');
}
if (empty($roleid)) { if (empty($roleid)) {
error ('you need to select a role'); error ('you need to select a role');