From 98afab74e2a04896d7a7f5e0196c1f21a80cab8e Mon Sep 17 00:00:00 2001 From: Mikael Nordfeldth Date: Sun, 18 Jan 2015 12:56:17 +0100 Subject: [PATCH] Bad variable reference (needed $this->) --- actions/apiaccountupdateprofile.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;