Skip to content

Commit

Permalink
Fix double curl bug
Browse files Browse the repository at this point in the history
Fixed: call to makeCurl() was doing two sequential curl requests if no $cookieSet parameter was passed.
  • Loading branch information
gogromat committed Sep 19, 2013
1 parent c032abf commit 28169be
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions GoogleTranslate.php
Expand Up @@ -89,6 +89,7 @@ public static final function makeCurl($url, array $params = array(), $cookieSet
curl_setopt($ch, CURLOPT_COOKIEJAR, $cookie);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$output = curl_exec($ch);
return $output;
}

$queryString = http_build_query($params);
Expand Down

0 comments on commit 28169be

Please sign in to comment.