Commit 4a6d2d8b authored by okhin's avatar okhin

Merge branch '2-undefined-variable-ch' into 'master'

Update Api.php

Closes #2 fixing the variables name (curl instead of ch)

See merge request !2
parents 5416d643 b20072c4
......@@ -11,7 +11,7 @@ class Api {
curl_setopt($curl, CURLOPT_URL, $url);
curl_setopt($curl, CURLOPT_HTTPHEADER, array('Content-type: application/json'));
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt($curl, CURLOPT_FOLLOWLOCATION, 1);
$result = curl_exec($curl);
curl_close($curl);
return $result;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment