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:
parent
0d910443d1
commit
e2898139bb
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user