You've already forked postfixadmin
mirror of
https://github.com/postfixadmin/postfixadmin.git
synced 2025-08-07 17:42:53 +03:00
Set $reset_by_sms even if password reset is disabled
... to avoid an "undefined variable" warning
This commit is contained in:
@@ -36,12 +36,10 @@ class AdminHandler extends PFAHandler {
|
|||||||
|
|
||||||
$passwordReset = Config::read('forgotten_admin_password_reset');
|
$passwordReset = Config::read('forgotten_admin_password_reset');
|
||||||
|
|
||||||
if ($passwordReset) {
|
|
||||||
$reset_by_sms = 0;
|
$reset_by_sms = 0;
|
||||||
if (Config::read('sms_send_function')) {
|
if ($passwordReset && Config::read('sms_send_function')) {
|
||||||
$reset_by_sms = 1;
|
$reset_by_sms = 1;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
$this->struct=array(
|
$this->struct=array(
|
||||||
# field name allow display in... type $PALANG label $PALANG description default / options / ...
|
# field name allow display in... type $PALANG label $PALANG description default / options / ...
|
||||||
|
@@ -13,12 +13,10 @@ class MailboxHandler extends PFAHandler {
|
|||||||
# init $this->struct, $this->db_table and $this->id_field
|
# init $this->struct, $this->db_table and $this->id_field
|
||||||
protected function initStruct() {
|
protected function initStruct() {
|
||||||
$passwordReset = Config::read('forgotten_user_password_reset');
|
$passwordReset = Config::read('forgotten_user_password_reset');
|
||||||
if ($passwordReset) {
|
|
||||||
$reset_by_sms = 0;
|
$reset_by_sms = 0;
|
||||||
if (Config::read('sms_send_function')) {
|
if ($passwordReset && Config::read('sms_send_function')) {
|
||||||
$reset_by_sms = 1;
|
$reset_by_sms = 1;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
$this->struct=array(
|
$this->struct=array(
|
||||||
# field name allow display in... type $PALANG label $PALANG description default / options / ...
|
# field name allow display in... type $PALANG label $PALANG description default / options / ...
|
||||||
|
Reference in New Issue
Block a user