diff --git a/admin/admin-cli.php b/admin/admin-cli.php index 1a8dcf0ece..7ecbe1f41b 100755 --- a/admin/admin-cli.php +++ b/admin/admin-cli.php @@ -409,7 +409,7 @@ function do_edit_mail($type, array $arg0s) // check if user allready has an identity created for given aliases foreach(Api\Mail\Account::identities($account, false, 'ident_email', $account_id) as $email) { - if (($key = array_search($email, $args))) + if (($key = array_search($email, $args)) !== false) { unset($args[$key]); }