0
0
mirror of https://github.com/postfixadmin/postfixadmin.git synced 2024-09-19 19:22:14 +02:00

psalm fix

This commit is contained in:
David Goodwin 2020-04-14 21:25:36 +01:00
parent f8415eef2a
commit e4158d6d7e

View File

@ -309,11 +309,10 @@ class AliasHandler extends PFAHandler {
}
protected function read_from_db_postprocess($db_result) {
foreach ($db_result as $key => $value) {
# split comma-separated 'goto' into an array
$goto = $db_result[$key]['goto'] ?? null;
if(is_string($goto)) {
if (is_string($goto)) {
$db_result[$key]['goto'] = explode(',', $goto);
}