diff --git a/www/includes/config.inc.php b/www/includes/config.inc.php index 7c7df9f..891787f 100644 --- a/www/includes/config.inc.php +++ b/www/includes/config.inc.php @@ -76,7 +76,7 @@ ### $ACCOUNT_REQUESTS_ENABLED = ((strcasecmp(getenv('ACCOUNT_REQUESTS_ENABLED'),'TRUE') == 0) ? TRUE : FALSE); - if ($EMAIL_SENDING_ENABLED == FALSE) { +if (($EMAIL_SENDING_ENABLED == FALSE) && ($ACCOUNT_REQUESTS_ENABLED == TRUE)) { $ACCOUNT_REQUESTS_ENABLED = FALSE; error_log("$log_prefix Config: ACCOUNT_REQUESTS_ENABLED was set to TRUE but SMTP_HOSTNAME wasn't set, so account requesting has been disabled as we can't send out the request email",0); }