Fix registration upload size, mail helper env variables, and verification rate limits
This commit is contained in:
@@ -16,8 +16,8 @@ if(file_exists($dotenvPath . '.env')){
|
||||
|
||||
function env($k, $default = null){
|
||||
$val = $_ENV[$k] ?? null;
|
||||
if($val === null){ $val = getenv($k); }
|
||||
return $val !== false ? $val : $default;
|
||||
if($val === null || $val === ''){ $val = getenv($k); }
|
||||
return ($val !== false && $val !== '') ? $val : $default;
|
||||
}
|
||||
|
||||
function send_mail_phpmailer($to, $subject, $body, $isHtml = false){
|
||||
|
||||
Reference in New Issue
Block a user