mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-03-31 22:05:20 +03:00
[NovayaGazetaEuropeBridge]: fix warnings (#4154)
This commit is contained in:
parent
00d5242871
commit
376e711f03
1 changed files with 3 additions and 0 deletions
|
@ -41,6 +41,9 @@ class NovayaGazetaEuropeBridge extends BridgeAbstract
|
||||||
$data = json_decode($json);
|
$data = json_decode($json);
|
||||||
|
|
||||||
foreach ($data->records as $record) {
|
foreach ($data->records as $record) {
|
||||||
|
if (!isset($record->blocks)) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
foreach ($record->blocks as $block) {
|
foreach ($record->blocks as $block) {
|
||||||
if (!property_exists($block, 'date')) {
|
if (!property_exists($block, 'date')) {
|
||||||
continue;
|
continue;
|
||||||
|
|
Loading…
Add table
Reference in a new issue