diff --git a/actions/apiaccountupdateprofile.php b/actions/apiaccountupdateprofile.php index 60fed1e3c5..a9842ec5d8 100644 --- a/actions/apiaccountupdateprofile.php +++ b/actions/apiaccountupdateprofile.php @@ -111,7 +111,7 @@ class ApiAccountUpdateProfileAction extends ApiAuthAction if (!empty($this->location)) { $profile->location = $this->location; - $loc = Location::fromName($location); + $loc = Location::fromName($this->location); if (!empty($loc)) { $profile->lat = $loc->lat;