1
0
mirror of https://github.com/postfixadmin/postfixadmin.git synced 2025-07-29 22:41:11 +03:00

php7.4 / psalm fixes

This commit is contained in:
David Goodwin
2020-01-31 16:30:46 +00:00
parent 882b6835ed
commit 1ad184641d
9 changed files with 12 additions and 10 deletions

View File

@ -139,7 +139,7 @@ class AliasHandler extends PFAHandler {
public function init($id) {
@list($local_part, $domain) = explode('@', $id); # supress error message if $id doesn't contain '@'
if ($local_part == '*') { # catchall - postfix expects '@domain', not '*@domain'
if ($local_part == '*' && !is_null($domain)) { # catchall - postfix expects '@domain', not '*@domain'
$id = '@' . $domain;
}