Skip to content
Snippets Groups Projects
Commit c9c6a0ab authored by Owen Winkler's avatar Owen Winkler Committed by Thomas Müller
Browse files

Don't error out on console.

parent 392a1b66
No related branches found
No related tags found
No related merge requests found
......@@ -76,8 +76,8 @@ class OC_Log_Owncloud {
self::$reqId = uniqid();
}
$reqId = self::$reqId;
$url = $_SERVER['REQUEST_URI'];
$method = $_SERVER['REQUEST_METHOD'];
$url = isset($_SERVER['REQUEST_URI']) ? $_SERVER['REQUEST_URI'] : '--';
$method = isset($_SERVER['REQUEST_METHOD']) ? $_SERVER['REQUEST_METHOD'] : '--';
$entry = compact('reqId', 'app', 'message', 'level', 'time', 'method', 'url');
}
else {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment