MDL-20114 admin/cron.php: Fix SQL bug when emailing new passwords.

Author: Jonathan Harker <jonathan@catalyst.net.nz>
This commit is contained in:
jonathanharker 2009-08-18 00:07:00 +00:00
parent 17881fe287
commit 324265457c

View File

@ -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