Fix message parsing
This commit is contained in:
@@ -68,7 +68,7 @@ class Feed extends PhpObject {
|
|||||||
$asData = $this->retrieveFeed();
|
$asData = $this->retrieveFeed();
|
||||||
$sLastUpdate = date(Db::TIMESTAMP_FORMAT);
|
$sLastUpdate = date(Db::TIMESTAMP_FORMAT);
|
||||||
if(!isset($asData['response']['errors']) || empty($asData['response']['errors'])) {
|
if(!isset($asData['response']['errors']) || empty($asData['response']['errors'])) {
|
||||||
$asMsgs = $asData['response']['feedMessageResponse']['messages'];
|
$asMsgs = $asData['response']['feedMessageResponse']['messages']['message'];
|
||||||
$asFeed = $asData['response']['feedMessageResponse']['feed'];
|
$asFeed = $asData['response']['feedMessageResponse']['feed'];
|
||||||
|
|
||||||
if(!empty($asMsgs))
|
if(!empty($asMsgs))
|
||||||
@@ -120,4 +120,4 @@ class Feed extends PhpObject {
|
|||||||
$sContent = file_get_contents($sUrl);
|
$sContent = file_get_contents($sUrl);
|
||||||
return json_decode($sContent, true);
|
return json_decode($sContent, true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user