Commit b1393488 authored by thibaut-felten's avatar thibaut-felten

FinTP2

parent cff2d3ee
...@@ -25,7 +25,9 @@ class UsersController { ...@@ -25,7 +25,9 @@ class UsersController {
$response = $this->createUser($_POST['name'], $_POST['email']); $response = $this->createUser($_POST['name'], $_POST['email']);
break; break;
case 'DELETE': case 'DELETE':
$response = $this->deleteUser(($this->params)[0]); if (isset($this->params)) {
$response = $this->deleteUser(($this->params)[0]);
}
break; break;
case 'PUT': case 'PUT':
if (isset($this->params)) { if (isset($this->params)) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment