Skip to content

Commit

Permalink
Make guards in email_send_confirm_hash_url() and lost_pwd.php consistent
Browse files Browse the repository at this point in the history
  • Loading branch information
davidhicks committed Feb 10, 2010
1 parent c1bfeff commit 691457b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion core/email_api.php
Expand Up @@ -486,7 +486,9 @@ function email_signup( $p_user_id, $p_password, $p_confirm_hash, $p_admin_name =
* @return null
*/
function email_send_confirm_hash_url( $p_user_id, $p_confirm_hash ) {
if(( OFF == config_get( 'send_reset_password' ) ) || ( OFF == config_get( 'enable_email_notification' ) ) ) {
if( OFF == config_get( 'lost_password_feature' ) ||
OFF == config_get( 'send_reset_password' ) ||
OFF == config_get( 'enable_email_notification' ) ) {
return;
}

Expand Down

0 comments on commit 691457b

Please sign in to comment.