From e2898139bbf58dce72c7f283c5e458c3c79fbdec Mon Sep 17 00:00:00 2001 From: Thomas Tanghus Date: Tue, 4 Feb 2014 21:38:02 +0100 Subject: [PATCH] Initialize JSONReponse data with null --- lib/jsonresponse.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/jsonresponse.php b/lib/jsonresponse.php index 566f23a1..3337c7e5 100644 --- a/lib/jsonresponse.php +++ b/lib/jsonresponse.php @@ -18,7 +18,7 @@ use OCP\AppFramework\Http\JSONResponse as 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); $this->data = $params; }