Skip to content

Commit

Permalink
Fixed a PHP warning if there are not any errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
travist committed Dec 31, 2011
1 parent 0afbde3 commit bfad8de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Server.php
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ protected function send() {
* Called to validate the response of the request.
*/
protected function validate() {
if (!$this->response || $this->response->errors) {
if (!$this->response || (isset($this->response->errors) && $this->response->errors)) {
if (method_exists($this->request, 'onError')) {
$errors = isset($this->response) ? $this->response->errors : array();
$this->request->onError($errors);
Expand Down

0 comments on commit bfad8de

Please sign in to comment.