From 953d9b7a4b96e8cf3148b5bc443bee30c68b021e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Alves?= Date: Wed, 30 Dec 2020 11:02:39 +0000 Subject: [PATCH] Fix for missing condition (#58) Changed the condition in which the ACCOUNT_REQUESTS_ENABLED is disabled. Only disable it if it is not previously disabled. --- www/includes/config.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }