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

Explicitly check for request vars

This commit is contained in:
Thomas Tanghus 2014-04-01 03:38:01 +02:00
parent fa9f66e140
commit 06f865beeb

View File

@ -83,8 +83,8 @@ class ContactController extends Controller {
$patch = $this->request->patch;
$response = new JSONResponse();
$name = $patch['name'];
$value = $patch['value'];
$name = isset($patch['name']) ? $patch['name'] : null;
$value = isset($patch['value']) ? $patch['value'] : null;
$checksum = isset($patch['checksum']) ? $patch['checksum'] : null;
$parameters = isset($patch['parameters']) ? $patch['parameters'] : null;