Skip to content

Commit

Permalink
Merge pull request #7 from plumbum/master
Browse files Browse the repository at this point in the history
Fixed issue with zero request id
  • Loading branch information
cranetm committed Apr 12, 2016
2 parents 3db33db + 8d51926 commit d3df8c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion JsonRpc2/Controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ private function getActionResponse($requestObject)
if (!isset($this->requestObject->id) && (empty($error) || !in_array($error->getCode(), [Exception::PARSE_ERROR, Exception::INVALID_REQUEST])))
return null;

return Helper::formatResponse($result, $error, !isset($this->requestObject->id)? $this->requestObject->id : null);
return Helper::formatResponse($result, $error, isset($this->requestObject->id)? $this->requestObject->id : null);
}

/**
Expand Down

0 comments on commit d3df8c7

Please sign in to comment.