From: Brion Vibber Date: Thu, 8 Apr 2010 17:11:52 +0000 (-0700) Subject: Fix for error during handling of HTTP error response case in Geonames lookups X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=ecd31384ed9560aac350085733af4039cf344c8a;p=quix0rs-gnu-social.git Fix for error during handling of HTTP error response case in Geonames lookups --- diff --git a/plugins/GeonamesPlugin.php b/plugins/GeonamesPlugin.php index 718af9e0b5..bc5899943b 100644 --- a/plugins/GeonamesPlugin.php +++ b/plugins/GeonamesPlugin.php @@ -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();