diff --git a/components/com_users/models/registration.php b/components/com_users/models/registration.php index e89d3180e16dc..4543eed534e1e 100644 --- a/components/com_users/models/registration.php +++ b/components/com_users/models/registration.php @@ -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); @@ -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);