unify getData() response

This commit is contained in:
Jonathan Labreuille
2016-08-09 14:39:42 +02:00
parent 12b46736c5
commit 22e8e34213
2 changed files with 2 additions and 2 deletions

View File

@@ -13,7 +13,7 @@ class ErrorResponse extends Response {
function getData() {
if(empty($this->errors)) {
return false;
return null;
} else {
return array(
'errors' => $this->errors