diff options
| author | lolcat <will@lolcat.ca> | 2025-01-06 21:05:45 -0500 |
|---|---|---|
| committer | lolcat <will@lolcat.ca> | 2025-01-06 21:05:45 -0500 |
| commit | cfad4fb035eb608e4cbd24cf955cdd455fa983f6 (patch) | |
| tree | 19cab01179a987bf83bd57b2d805c87f3dcd42b8 /scraper | |
| parent | 4e968b4b1cca7a43ba98fdae655fed1eeea591f6 (diff) | |
wordnik bugfix
Diffstat (limited to 'scraper')
| -rw-r--r-- | scraper/ddg.php | 5 |
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); |
