From 06f865beebd7c40d8f7d0c7ac7c787b9c946b323 Mon Sep 17 00:00:00 2001 From: Thomas Tanghus Date: Tue, 1 Apr 2014 03:38:01 +0200 Subject: [PATCH] Explicitly check for request vars --- lib/controller/contactcontroller.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/controller/contactcontroller.php b/lib/controller/contactcontroller.php index 04c35f11..176df2ea 100644 --- a/lib/controller/contactcontroller.php +++ b/lib/controller/contactcontroller.php @@ -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;