Permalink
Browse files

Merge branch 'w27_MDL-34123_m22_newpasslang' of git://github.com/skod…

…ak/moodle into MOODLE_22_STABLE
  • Loading branch information...
2 parents 81bf2a1 + 3721bbf commit 705b30e99efb9fad4b0d0ca6026f4ecdd7e38436 @danpoltawski danpoltawski committed Jul 3, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/cronlib.php
View
@@ -208,7 +208,7 @@ function cron_run() {
if ($DB->count_records('user_preferences', array('name'=>'create_password', 'value'=>'1'))) {
mtrace('Creating passwords for new users...');
$newusers = $DB->get_recordset_sql("SELECT u.id as id, u.email, u.firstname,
- u.lastname, u.username,
+ u.lastname, u.username, u.lang,
p.id as prefid
FROM {user} u
JOIN {user_preferences} p ON u.id=p.userid

0 comments on commit 705b30e

Please sign in to comment.