]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-15043
authorthepurpleblob <thepurpleblob>
Thu, 29 May 2008 12:49:29 +0000 (12:49 +0000)
committerthepurpleblob <thepurpleblob>
Thu, 29 May 2008 12:49:29 +0000 (12:49 +0000)
No need to use $USER in the log write call, it's the default

lib/accesslib.php

index 372f5a71ff37c09db3d936a5935ae94294a6e89a..361f36c4ff352471064e7ba69ccc73c7964439bf 100755 (executable)
@@ -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;
@@ -5474,4 +5474,4 @@ function role_cap_duplicate($sourcerole, $targetrole) {
     }
 }
 
-?>
\ No newline at end of file
+?>