Fixed an unquoted string

This commit is contained in:
moodler
2004-08-30 17:45:51 +00:00
parent bee864c912
commit a8db8bdc3e
+1 -1
View File
@@ -733,7 +733,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