Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Ignore guest when checking imcomplete users

  • Loading branch information...
commit ac5d88ebe953891fe095144e44ecdff182989e7f 1 parent 819df38
moodler authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/moodlelib.php
View
4 lib/moodlelib.php
@@ -334,7 +334,7 @@ function update_user_login_times() {
}
function user_not_fully_set_up($user) {
- return (empty($user->firstname) or empty($user->lastname) or empty($user->email));
+ return ($user->username != "guest" and (empty($user->firstname) or empty($user->lastname) or empty($user->email)));
}
function update_login_count() {
@@ -371,7 +371,7 @@ function isadmin($userid=0) {
/// Is the user an admin?
global $USER;
- if (empty($USER)) {
+ if (empty($USER->id)) {
return false;
}
Please sign in to comment.
Something went wrong with that request. Please try again.