1
0
mirror of https://github.com/owncloudarchive/contacts.git synced 2024-12-01 13:24:10 +01:00

Initialize JSONReponse data with null

This commit is contained in:
Thomas Tanghus 2014-02-04 21:38:02 +01:00
parent 0d910443d1
commit e2898139bb

View File

@ -18,7 +18,7 @@ use OCP\AppFramework\Http\JSONResponse as OriginalResponse,
*/ */
class JSONResponse extends OriginalResponse { class JSONResponse extends OriginalResponse {
public function __construct($params = array(), $statusCode = Http::STATUS_OK) { public function __construct($params = null, $statusCode = Http::STATUS_OK) {
parent::__construct(array(), $statusCode); parent::__construct(array(), $statusCode);
$this->data = $params; $this->data = $params;
} }