Skip to content

Commit

Permalink
Merge pull request #59 from justincy/master
Browse files Browse the repository at this point in the history
Fix XML parsing exception from being thrown incorrectly
  • Loading branch information
nategood committed Oct 6, 2012
2 parents fcaa366 + a1f1fab commit e1ba467
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Httpful/Handlers/XmlHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public function parse($body)
if (empty($body))
return null;
$parsed = simplexml_load_string($body, null, $this->libxml_opts, $this->namespace);
if (!$parsed)
if ($parsed === false)
throw new \Exception("Unable to parse response as XML");
return $parsed;
}
Expand Down

0 comments on commit e1ba467

Please sign in to comment.