Created
June 8, 2010 14:17
-
-
Save zombor/430079 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/classes/kohana/request.php b/classes/kohana/request.php | |
index d739056..a639c48 100644 | |
--- a/classes/kohana/request.php | |
+++ b/classes/kohana/request.php | |
@@ -988,7 +988,7 @@ class Kohana_Request { | |
if ($this !== Request::$instance) | |
{ | |
// Add the parent request uri | |
- $benchmark .= ' « "'.Request::$current->uri.'"'; | |
+ $benchmark .= ' « "'.(NULL == Request::$current ? '<empty uri>' : Request::$current->uri).'"'; | |
} | |
// Start benchmarking |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment