Skip to content

Commit

Permalink
Fixed json/application problems
Browse files Browse the repository at this point in the history
  • Loading branch information
JulianFun123 committed Jul 12, 2020
1 parent 8c26178 commit b03535f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bootstrap/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
$ULOLE_CONFIG = json_decode(file_get_contents("conf.json"));
\modules\ulole\Config::$config = $ULOLE_CONFIG;

if (in_array("CONTENT_TYPE", $_SERVER) && strpos($_SERVER["CONTENT_TYPE"], "application/json") !== false){
if (isset($_SERVER["CONTENT_TYPE"]) && strpos($_SERVER["CONTENT_TYPE"], "application/json") !== false){
$_POST = json_decode(file_get_contents('php://input'), true);
}

Expand Down

0 comments on commit b03535f

Please sign in to comment.