mirror of
https://github.com/moodle/moodle.git
synced 2025-06-03 22:55:39 +02:00
Ooops.
This commit is contained in:
parent
6a08340572
commit
3cf4fa0cea
@ -2241,8 +2241,9 @@ function isguest($userid=0) {
|
||||
* @return bool
|
||||
*/
|
||||
function isediting($courseid, $user=NULL) {
|
||||
if (!$user){
|
||||
global $USER;
|
||||
global $USER;
|
||||
if (!$user) {
|
||||
$user = $USER;
|
||||
}
|
||||
if (empty($user->editing)) {
|
||||
return false;
|
||||
|
Loading…
x
Reference in New Issue
Block a user