diff --git a/scraper/ddg.php b/scraper/ddg.php index 8ad3808..76dfe0c 100644 --- a/scraper/ddg.php +++ b/scraper/ddg.php @@ -1212,7 +1212,10 @@ class ddg{ ); } - if(count($words) !== 0){ + if( + count($words) !== 0 && + isset($related["relationshipType"]) + ){ $relations[ucfirst($related["relationshipType"]) . "s"] = implode(", ", $words);