From cfad4fb035eb608e4cbd24cf955cdd455fa983f6 Mon Sep 17 00:00:00 2001 From: lolcat Date: Mon, 6 Jan 2025 21:05:45 -0500 Subject: [PATCH] wordnik bugfix --- scraper/ddg.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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);