Fix travis-ci error in RestAPIUserTest.php

This commit is contained in:
Jimmy 2019-10-25 10:09:24 +02:00
parent a0d202447d
commit 2c06969c2a

View File

@ -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';