summaryrefslogtreecommitdiffstats
path: root/lib/server.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/server.php')
-rw-r--r--lib/server.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/server.php b/lib/server.php
index fccb8fad4d0..9de9f5a0566 100644
--- a/lib/server.php
+++ b/lib/server.php
@@ -25,7 +25,7 @@ class Server extends SimpleContainer implements IServerContainer {
$params = array();
// we json decode the body only in case of content type json
- if (isset($_SERVER['CONTENT_TYPE']) && stripos($_SERVER['CONTENT_TYPE'],'json') === true ) {
+ if (isset($_SERVER['CONTENT_TYPE']) && stripos($_SERVER['CONTENT_TYPE'],'json') !== false ) {
$params = json_decode(file_get_contents('php://input'), true);
$params = is_array($params) ? $params: array();
}