"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:
dongsheng
2008-11-03 05:25:30 +00:00
parent f2eb500238
commit aa19998a72
+4 -2
View File
@@ -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;
}