mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
MDL-20114 admin/cron.php: Fix SQL bug when emailing new passwords.
Author: Jonathan Harker <jonathan@catalyst.net.nz>
This commit is contained in:
parent
17881fe287
commit
324265457c
@ -377,7 +377,7 @@
|
||||
p.id as prefid
|
||||
FROM {user} u
|
||||
JOIN {user_preferences} p ON u.id=p.userid
|
||||
WHERE p.name='create_password' AND p.value=1 AND u.email !='' ");
|
||||
WHERE p.name='create_password' AND p.value='1' AND u.email !='' ");
|
||||
|
||||
foreach ($newusers as $newuserid => $newuser) {
|
||||
$newuser->emailstop = 0; // send email regardless
|
||||
|
Loading…
x
Reference in New Issue
Block a user