Skip to content

Commit

Permalink
Merge pull request #21 from wetfire2k/master
Browse files Browse the repository at this point in the history
RELATED_QUERIES_X Error
  • Loading branch information
x-fran authored Oct 24, 2019
2 parents e400aba + 14ab2cb commit 616cc5d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Google/GTrends.php
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ public function getRelatedSearchQueries($keyWordList=null, $category=0, $time='t
$results = [];
foreach ($widgetsArray as $widget) {

if ($widget['id'] === 'RELATED_QUERIES') {
if (stripos($widget['id'], 'RELATED_QUERIES') !== false) {

$kWord = $widget['request']['restriction']['complexKeywordsRestriction']['keyword'][0]['value'] ?? null;
$relatedPayload['hl'] = $this->options['hl'];
Expand Down

0 comments on commit 616cc5d

Please sign in to comment.