Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -128,9 +128,7 @@ public function getResults($phrase, $parameters = array())
$output = curl_exec($ch);

$info = curl_getinfo($ch);

curl_close($ch);


/**
* Check HTTP code of the result
*/
Expand All @@ -139,6 +137,8 @@ public function getResults($phrase, $parameters = array())
throw new \Exception("No data returned, code [". $info['http_code']. "] - " . curl_error($ch));
}

curl_close($ch);

/**
* Convert JSON format to object and save
*/
Expand Down