From d099fbe28a343c7d14ca7a5b8b4e70068c7de54f Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Thu, 10 Nov 2016 09:51:37 +0100 Subject: [PATCH] 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 --- admin/admin-cli.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/admin/admin-cli.php b/admin/admin-cli.php index 7ecbe1f41b..d1fd9a401e 100755 --- a/admin/admin-cli.php +++ b/admin/admin-cli.php @@ -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 '-':