fix error if no alias/forward set stalling setting one, caused by using NULL instead of an empty array throws error: Argument 1 passed to array_modify() must be of the type array, null given

This commit is contained in:
Ralf Becker 2016-11-10 09:51:37 +01:00
parent 58c1596002
commit 68cd92a0ca

View File

@ -448,8 +448,10 @@ function do_edit_mail($type, array $arg0s)
* on return optional +/- prefix has been removed
* @return array
*/
function array_modify(array &$arr, array &$mod)
function array_modify(&$arr, array &$mod)
{
if (!is_array($arr)) $arr = array();
switch($mod[0][0])
{
case '-':