Subversion Repositories munaweb

Rev

Rev 75 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 75 Rev 100
Line 19... Line 19...
19
  curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);
19
  curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);
20
  $data = curl_exec ($curl);
20
  $data = curl_exec ($curl);
21
  curl_close ($curl);
21
  curl_close ($curl);
22
 
22
 
23
  $json = json_decode($data);
23
  $json = json_decode($data);
24
  $count = $json->count;
24
  $count = (isset($json->count) ? $json->count : 0);
25
 
25
 
26
  if ($count < 1) {
26
  if ($count < 1) {
27
  	return array(false, "Shopify: Can't handle \"$Title\", found $count products.");
27
  	return array(false, "Shopify: Can't handle \"$Title\", found $count products.");
28
  	return false;
28
  	return false;
29
  }
29
  }