]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Bad variable reference (needed $this->)
authorMikael Nordfeldth <mmn@hethane.se>
Sun, 18 Jan 2015 11:56:17 +0000 (12:56 +0100)
committerMikael Nordfeldth <mmn@hethane.se>
Sun, 18 Jan 2015 11:56:17 +0000 (12:56 +0100)
actions/apiaccountupdateprofile.php

index 60fed1e3c58215a6fd1ee98640615b4984d128e4..a9842ec5d8f33d80dba29e353e4597be3150623c 100644 (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;