Removed unneeded parameter

This commit is contained in:
Michael 2021-11-08 21:58:21 +00:00
parent ac1b8b7b3a
commit fbde999d0d

View file

@ -4221,7 +4221,7 @@ api_register_func('api/account/update_profile_image', 'api_account_update_profil
function api_account_update_profile($type)
{
$local_user = api_user();
$api_user = api_get_user(DI::app());
$api_user = api_get_user();
if (!empty($_POST['name'])) {
DBA::update('profile', ['name' => $_POST['name']], ['uid' => $local_user]);