Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

Author: Jonathan Harker <jonathan@catalyst.net.nz>
  • Loading branch information...
commit 181b342dd44723197dbce6f6d1e9b73add0e9dd9 1 parent 9be4ad6
jonathanharker authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  admin/cron.php
View
2  admin/cron.php
@@ -350,7 +350,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
Please sign in to comment.
Something went wrong with that request. Please try again.