Skip to content

Commit dd22b6a

Browse files
author
Vítězslav Dvořák
committed
fix when no relations obtained
1 parent 928e9a2 commit dd22b6a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/update_relations_class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ function getEvidenceRelations($evidence, RO $syncer)
2929
}
3030

3131
$flexinfo = $syncer->performRequest($evidence . '/relations.json');
32-
if (count($flexinfo) && array_key_exists('relations', $flexinfo)) {
32+
if ($flexinfo && count($flexinfo) && array_key_exists('relations', $flexinfo)) {
3333

3434
if (array_key_exists('relations', $flexinfo)) {
3535
foreach ($flexinfo['relations'] as $evidenceRelations) {

0 commit comments

Comments
 (0)