1
0
mirror of https://github.com/postfixadmin/postfixadmin.git synced 2025-08-06 06:42:37 +03:00

fix psalm : bool -> int

This commit is contained in:
David Goodwin
2021-02-18 21:19:56 +00:00
parent 0764f47a64
commit 9700a3a9c9

View File

@@ -12,7 +12,7 @@ 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 = (int) Config::bool('forgotten_user_password_reset') && !Config::read('mailbox_postpassword_script'); $passwordReset = (int) ( Config::bool('forgotten_user_password_reset') && !Config::read('mailbox_postpassword_script') );
$reset_by_sms = 0; $reset_by_sms = 0;
if ($passwordReset && Config::read_string('sms_send_function')) { if ($passwordReset && Config::read_string('sms_send_function')) {
$reset_by_sms = 1; $reset_by_sms = 1;