Skip to content

Commit

Permalink
MDL-20114 admin/cron.php: Fix SQL bug when emailing new passwords.
Browse files Browse the repository at this point in the history
Author: Jonathan Harker <jonathan@catalyst.net.nz>
  • Loading branch information
jonathanharker committed Aug 17, 2009
1 parent 1821c3e commit 6b3d1c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion admin/cron.php
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@
p.id as prefid
FROM {$CFG->prefix}user u
JOIN {$CFG->prefix}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
Expand Down

0 comments on commit 6b3d1c2

Please sign in to comment.