aboutsummaryrefslogtreecommitdiffstats
path: root/scraper
diff options
context:
space:
mode:
authorlolcat <will@lolcat.ca>2025-01-06 21:05:45 -0500
committerlolcat <will@lolcat.ca>2025-01-06 21:05:45 -0500
commitcfad4fb035eb608e4cbd24cf955cdd455fa983f6 (patch)
tree19cab01179a987bf83bd57b2d805c87f3dcd42b8 /scraper
parent4e968b4b1cca7a43ba98fdae655fed1eeea591f6 (diff)
wordnik bugfix
Diffstat (limited to 'scraper')
-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