Skip to content

Commit

Permalink
MDL-15043
Browse files Browse the repository at this point in the history
No need to use $USER in the log write call, it's the default
  • Loading branch information
thepurpleblob committed May 29, 2008
1 parent ac1dc98 commit e60d5b2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/accesslib.php
Original file line number Diff line number Diff line change
Expand Up @@ -2521,7 +2521,7 @@ function delete_role($roleid) {
}

if ($success) {
add_to_log(SITEID, 'role', 'delete', 'admin/roles/action=delete&roleid='.$roleid, $rolename, '', $USER->id);
add_to_log(SITEID, 'role', 'delete', 'admin/roles/action=delete&roleid='.$roleid, $rolename, '');
}

return $success;
Expand Down Expand Up @@ -5474,4 +5474,4 @@ function role_cap_duplicate($sourcerole, $targetrole) {
}
}

?>
?>

0 comments on commit e60d5b2

Please sign in to comment.