Skip to content

Commit

Permalink
Issue fix regarding count() function error in PHP version 7.2
Browse files Browse the repository at this point in the history
  • Loading branch information
sumanthchilka committed Nov 28, 2018
1 parent 3ce8de9 commit 252c502
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/com/zoho/crm/library/common/ZohoHTTPConnector.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public static function getInstance()
public function fireRequest()
{
$curl_pointer=curl_init();
if(count(self::getRequestParamsMap())>0)
if(is_array(self::getRequestParamsMap()) && count(self::getRequestParamsMap())>0)
{
$url=self::getUrl()."?".self::getUrlParamsAsString(self::getRequestParamsMap());
curl_setopt($curl_pointer,CURLOPT_URL,$url);
Expand Down

0 comments on commit 252c502

Please sign in to comment.