Skip to content

Commit

Permalink
Fixes joomla#13177: Added where clause with block status (joomla#13545)
Browse files Browse the repository at this point in the history
  • Loading branch information
jajodiaraghav authored and rdeutz committed Jan 17, 2017
1 parent e8043e8 commit 72dfde2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions components/com_users/models/registration.php
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,8 @@ public function activate($token)
$query->clear()
->select($db->quoteName(array('name', 'email', 'sendEmail', 'id')))
->from($db->quoteName('#__users'))
->where($db->quoteName('sendEmail') . ' = ' . 1);
->where($db->quoteName('sendEmail') . ' = 1')
->where($db->quoteName('block') . ' = 0');

$db->setQuery($query);

Expand Down Expand Up @@ -582,7 +583,8 @@ public function register($temp)
$query->clear()
->select($db->quoteName(array('name', 'email', 'sendEmail')))
->from($db->quoteName('#__users'))
->where($db->quoteName('sendEmail') . ' = ' . 1);
->where($db->quoteName('sendEmail') . ' = 1')
->where($db->quoteName('block') . ' = 0');

$db->setQuery($query);

Expand Down

0 comments on commit 72dfde2

Please sign in to comment.