You've already forked postfixadmin
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:
@@ -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;
|
||||||
|
Reference in New Issue
Block a user