Fixed Notice error. Issue #185.
This commit is contained in:
parent
361a06a127
commit
11ef5ef302
1 changed files with 5 additions and 1 deletions
|
|
@ -605,7 +605,11 @@ class WebhookController extends Controller
|
|||
Project::TYPE_GIT,
|
||||
]);
|
||||
|
||||
switch ($_SERVER['CONTENT_TYPE']) {
|
||||
$contentType = !empty($_SERVER['CONTENT_TYPE'])
|
||||
? $_SERVER['CONTENT_TYPE']
|
||||
: null;
|
||||
|
||||
switch ($contentType) {
|
||||
case 'application/x-www-form-urlencoded':
|
||||
$payload = json_decode($this->getParam('payload'), true);
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue