Fixed an unquoted string (merged from stable)

This commit is contained in:
moodler
2004-08-30 17:47:21 +00:00
parent 076cc57cc0
commit 3271b70ff3
+1 -1
View File
@@ -728,7 +728,7 @@ function create_user_record($username, $password) {
global $REMOTE_ADDR, $CFG;
//just in case check text case
$username = trim(moodle_strtolower($username));
if (function_exists(auth_get_userinfo)) {
if (function_exists('auth_get_userinfo')) {
if ($newinfo = auth_get_userinfo($username)) {
foreach ($newinfo as $key => $value){
$newuser->$key = addslashes(stripslashes($value)); // Just in case