Skip to content

Commit

Permalink
[NovayaGazetaEuropeBridge]: fix warnings (#4154)
Browse files Browse the repository at this point in the history
  • Loading branch information
mazzz1y authored Jul 28, 2024
1 parent 00d5242 commit 376e711
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions bridges/NovayaGazetaEuropeBridge.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ public function collectData()
$data = json_decode($json);

foreach ($data->records as $record) {
if (!isset($record->blocks)) {
continue;
}
foreach ($record->blocks as $block) {
if (!property_exists($block, 'date')) {
continue;
Expand Down

0 comments on commit 376e711

Please sign in to comment.