You are viewing a plain text version of this content. The canonical link for it is here.
Posted to olio-commits@incubator.apache.org by sh...@apache.org on 2009/09/14 16:28:43 UTC
svn commit: r814727 - /incubator/olio/webapp/php/trunk/classes/Geocoder.php
Author: shanti
Date: Mon Sep 14 16:28:43 2009
New Revision: 814727
URL: http://svn.apache.org/viewvc?rev=814727&view=rev
Log:
Fix for OLIO-117.
Modified:
incubator/olio/webapp/php/trunk/classes/Geocoder.php
Modified: incubator/olio/webapp/php/trunk/classes/Geocoder.php
URL: http://svn.apache.org/viewvc/incubator/olio/webapp/php/trunk/classes/Geocoder.php?rev=814727&r1=814726&r2=814727&view=diff
==============================================================================
--- incubator/olio/webapp/php/trunk/classes/Geocoder.php (original)
+++ incubator/olio/webapp/php/trunk/classes/Geocoder.php Mon Sep 14 16:28:43 2009
@@ -33,7 +33,7 @@
$stream = $this->curl_string($url);
$xmlBegin= strpos($stream, '<?xml');
if(!$xmlBegin)
- throw new Exception('Did not find xml part in: $stream');
+ throw new Exception("Did not find xml part in: $stream");
$xmlString = substr($stream, $xmlBegin);
$xml = simplexml_load_string($xmlString);
$this->latitude = $xml->Result->Latitude;