From eae267e264ad96d83d5c36a5bb5503968fc9e774 Mon Sep 17 00:00:00 2001 From: Sylvain Berfini Date: Wed, 28 Aug 2019 15:39:50 +0200 Subject: [PATCH] Fixed double alias creation for phone accounts --- src/xmlrpc/accounts_phone.php | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/xmlrpc/accounts_phone.php b/src/xmlrpc/accounts_phone.php index 33cd0b2..9b778e5 100644 --- a/src/xmlrpc/accounts_phone.php +++ b/src/xmlrpc/accounts_phone.php @@ -112,11 +112,6 @@ function xmlrpc_create_phone_account($method, $args) { $password->algorithm = $algo; $password->create(); - if ($user != $phone) { - $alias->account_id = $account->id; - $alias->create(); - } - if (CUSTOM_HOOKS) { hook_on_account_created($account); }