Skip to content

Commit

Permalink
fixed xml parsing bug
Browse files Browse the repository at this point in the history
  • Loading branch information
cedcommerce committed Jan 18, 2016
1 parent 12e2e14 commit f92edc9
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Model/Feed.php
Original file line number Diff line number Diff line change
Expand Up @@ -287,8 +287,11 @@ public function getFeedData($urlParams = array())
{
return false;
}
$xml = new \SimpleXMLElement($data);
} catch (Exception $e) {
if($curl->getInfo())
$xml = new \SimpleXMLElement((string)$data);
else
return false;
} catch (\Exception $e) {
return false;
}

Expand Down

0 comments on commit f92edc9

Please sign in to comment.