Bad variable reference (needed $this->)

This commit is contained in:
Mikael Nordfeldth 2015-01-18 12:56:17 +01:00
parent 06c93faa2d
commit 98afab74e2
1 changed files with 1 additions and 1 deletions

View File

@ -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;