1
0
mirror of https://github.com/owncloudarchive/contacts.git synced 2024-11-29 11:24:11 +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 {
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;
}