Skip to content

Commit

Permalink
Warning triggered from getTags() method fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
sumanthchilka committed Dec 17, 2018
1 parent ed6e73d commit fb0e3f2
Showing 1 changed file with 16 additions and 4 deletions.
20 changes: 16 additions & 4 deletions src/com/zoho/crm/library/api/response/ResponseInfo.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,22 @@ class ResponseInfo

public function __construct($reponseInfoJSON)
{
$this->moreRecords=(bool)$reponseInfoJSON[APIConstants::MORE_RECORDS];
$this->recordCount=$reponseInfoJSON[APIConstants::COUNT]+0;
$this->pageNo=$reponseInfoJSON[APIConstants::PAGE]+0;
$this->perPage=$reponseInfoJSON[APIConstants::PER_PAGE]+0;
if(array_key_exists(APIConstants::MORE_RECORDS,$reponseInfoJSON))
{
$this->moreRecords=(bool)$reponseInfoJSON[APIConstants::MORE_RECORDS];
}
if(array_key_exists(APIConstants::COUNT,$reponseInfoJSON))
{
$this->recordCount=$reponseInfoJSON[APIConstants::COUNT]+0;
}
if(array_key_exists(APIConstants::PAGE,$reponseInfoJSON))
{
$this->pageNo=$reponseInfoJSON[APIConstants::PAGE]+0;
}
if(array_key_exists(APIConstants::PER_PAGE,$reponseInfoJSON))
{
$this->perPage=$reponseInfoJSON[APIConstants::PER_PAGE]+0;
}
if(array_key_exists(APIConstants::ALLOWED_COUNT,$reponseInfoJSON))
{
$this->tagAllowedCount=$reponseInfoJSON[APIConstants::ALLOWED_COUNT]+0;
Expand Down

0 comments on commit fb0e3f2

Please sign in to comment.