Fixed function _getSTGLMailAddress to return same array structure

Different structure was causing errors in handling.
This commit is contained in:
Cris
2022-05-09 15:34:22 +02:00
parent efcef48f89
commit c39174980c
@@ -358,8 +358,6 @@ html;
'vorname' => $stgl->vorname
);
}
return $stglMailAdress_arr;
}
// If not available, get assistance mail address
else
@@ -368,12 +366,13 @@ html;
if (hasData($result))
{
return array(
$result->retval[0]->email,
''
$stglMailAdress_arr[]= array(
'to' => $result->retval[0]->email,
'vorname' => ''
);
}
}
return $stglMailAdress_arr;
}
// Build HTML table with yesterdays new Anrechnungen of the given STG