"MDL-16954, use rebert\'s patch to clean notice/warning in cron job via php cli, merged from 1.9"
This commit is contained in:
+4
-2
@@ -3357,8 +3357,10 @@ function get_complete_user_data($field, $value, $mnethostid=null) {
|
||||
$user->lastname = ' ';
|
||||
}
|
||||
|
||||
$user->sesskey = random_string(10);
|
||||
$user->sessionIP = md5(getremoteaddr()); // Store the current IP in the session
|
||||
if (isset($_SERVER['REMOTE_ADDR'])) {
|
||||
$user->sesskey = random_string(10);
|
||||
$user->sessionIP = md5(getremoteaddr()); // Store the current IP in the session
|
||||
}
|
||||
|
||||
return $user;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user