aboutsummaryrefslogtreecommitdiffstats
path: root/scraper/ddg.php
diff options
context:
space:
mode:
Diffstat (limited to 'scraper/ddg.php')
-rw-r--r--scraper/ddg.php5
1 files changed, 4 insertions, 1 deletions
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);
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage