From 2c06969c2a818fb8866e38081d8dbf62d2327652 Mon Sep 17 00:00:00 2001 From: Jimmy Date: Fri, 25 Oct 2019 10:09:24 +0200 Subject: [PATCH] Fix travis-ci error in RestAPIUserTest.php --- htdocs/api/index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/api/index.php b/htdocs/api/index.php index 318b47c6d36..613580785a5 100644 --- a/htdocs/api/index.php +++ b/htdocs/api/index.php @@ -39,7 +39,7 @@ if (! empty($_SERVER['HTTP_DOLAPIENTITY'])) define("DOLENTITY", (int) $_SERVER[' // Fix for NGINX -$url = $_SERVER["SCRIPT_URI"] !== null ? $_SERVER["SCRIPT_URI"] : $_SERVER['PHP_SELF']; +$url = (isset($_SERVER['SCRIPT_URI']) && $_SERVER["SCRIPT_URI"] !== null) ? $_SERVER["SCRIPT_URI"] : $_SERVER['PHP_SELF']; $res=0; if (! $res && file_exists("../main.inc.php")) $res=include '../main.inc.php';