REQUEST_URI is undefined from the CLI

This commit is contained in:
Shish 2012-02-16 16:15:25 +00:00
parent 6410199a84
commit d4accf09de

View file

@ -63,7 +63,7 @@ require_once "lib/context.php";
if(CONTEXT) {
ctx_set_log(CONTEXT);
}
ctx_log_start($_SERVER["REQUEST_URI"], true, true);
ctx_log_start(@$_SERVER["REQUEST_URI"], true, true);
if(COVERAGE) {
_start_coverage();
register_shutdown_function("_end_coverage");