Fix PHP 8.1 warnings

This commit is contained in:
Aleksander Machniak
2021-08-28 09:33:38 +02:00
parent 2c0db244bc
commit de74c656ce

View File

@@ -172,8 +172,8 @@ class rcube_smtp
return false;
}
$smtp_user = str_replace('%u', $rcube->get_user_name(), $CONFIG['smtp_user']);
$smtp_pass = str_replace('%p', $rcube->get_user_password(), $CONFIG['smtp_pass']);
$smtp_user = str_replace('%u', (string) $rcube->get_user_name(), $CONFIG['smtp_user']);
$smtp_pass = str_replace('%p', (string) $rcube->get_user_password(), $CONFIG['smtp_pass']);
$smtp_auth_type = $CONFIG['smtp_auth_type'] ?: null;
$smtp_authz = null;