Permalink
Browse files

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

Author: Jonathan Harker <jonathan@catalyst.net.nz>
  • Loading branch information...
1 parent 1821c3e commit 6b3d1c2a1139d5f2106bbe759bfcc1ffd188a1fb jonathanharker committed Aug 17, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 admin/cron.php
View
@@ -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

0 comments on commit 6b3d1c2

Please sign in to comment.