You've already forked postfixadmin
mirror of
https://github.com/postfixadmin/postfixadmin.git
synced 2025-07-29 22:41:11 +03:00
Set $reset_by_sms even if password reset is disabled
... to avoid an "undefined variable" warning
This commit is contained in:
@ -36,11 +36,9 @@ class AdminHandler extends PFAHandler {
|
||||
|
||||
$passwordReset = Config::read('forgotten_admin_password_reset');
|
||||
|
||||
if ($passwordReset) {
|
||||
$reset_by_sms = 0;
|
||||
if (Config::read('sms_send_function')) {
|
||||
$reset_by_sms = 1;
|
||||
}
|
||||
$reset_by_sms = 0;
|
||||
if ($passwordReset && Config::read('sms_send_function')) {
|
||||
$reset_by_sms = 1;
|
||||
}
|
||||
|
||||
$this->struct=array(
|
||||
|
Reference in New Issue
Block a user