]> git.wh0rd.org - tt-rss.git/blobdiff - include/sanity_check.php
sanity: it's probably a good idea to check whether we're running under httpd before...
[tt-rss.git] / include / sanity_check.php
index b8a5acb1c9e18afb734151fa4fabacf2f12968ac..f9f6575c898a2ea23f7a8e6593242ba22442b264 100755 (executable)
                                                "Please set SELF_URL_PATH to the correct value for your server (possible value: <b>$ref_self_url_path</b>)");
                        }
 
-                       if (SELF_URL_PATH != $ref_self_url_path && (!defined('_SKIP_SELF_URL_PATH_CHECKS') || !_SKIP_SELF_URL_PATH_CHECKS)) {
+                       if (isset($_SERVER["HTTP_HOST"]) && SELF_URL_PATH != $ref_self_url_path && (!defined('_SKIP_SELF_URL_PATH_CHECKS') || !_SKIP_SELF_URL_PATH_CHECKS)) {
                                array_push($errors,
                                        "Please set SELF_URL_PATH to the correct value detected for your server: <b>$ref_self_url_path</b>");
                        }