- Fixed notifications if included in projects running in command-line where certain variables aren't available.

This commit is contained in:
Simon Sessingø
2016-05-01 00:02:42 +02:00
parent f98e5ac59d
commit 1a9351c690
2 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -123,7 +123,7 @@ class Input {
$postVars = array();
if(in_array($_SERVER['REQUEST_METHOD'], ['PUT', 'PATCH', 'DELETE'])) {
if(isset($_SERVER['REQUEST_METHOD']) && in_array($_SERVER['REQUEST_METHOD'], ['PUT', 'PATCH', 'DELETE'])) {
parse_str(file_get_contents('php://input'), $postVars);
} else {
$postVars = $_POST;