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