]> source.dussan.org Git - nextcloud-server.git/commitdiff
Don't error out on console.
authorringmaster <epithet@gmail.com>
Wed, 28 May 2014 11:56:24 +0000 (07:56 -0400)
committerThomas Müller <thomas.mueller@tmit.eu>
Wed, 4 Jun 2014 05:55:45 +0000 (07:55 +0200)
lib/private/log/owncloud.php

index e1547d5b01165245173095cb33ee081211f5a43b..08d0b7d5f93daee020061e7dc704b4fcd6a56c2c 100644 (file)
@@ -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 {