]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Fix for error during handling of HTTP error response case in Geonames lookups
authorBrion Vibber <brion@pobox.com>
Thu, 8 Apr 2010 17:11:52 +0000 (10:11 -0700)
committerBrion Vibber <brion@pobox.com>
Thu, 8 Apr 2010 17:11:52 +0000 (10:11 -0700)
plugins/GeonamesPlugin.php

index 718af9e0b500d836fbe031e9f387f4b53a32b12d..bc5899943beab5594abee3ec9495cf12b66d2d2f 100644 (file)
@@ -458,7 +458,7 @@ class GeonamesPlugin extends Plugin
         }
 
         if (!$result->isOk()) {
-            throw new Exception("HTTP error code " . $result->code);
+            throw new Exception("HTTP error code " . $result->getStatus());
         }
 
         $body = $result->getBody();