Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

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 324265457cdb3e8723bbef58e44f65c1c57bd86e 1 parent 17881fe
jonathanharker authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  admin/cron.php
View
2  admin/cron.php
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.