Skip to content

Instantly share code, notes, and snippets.

@zombor
Created June 8, 2010 14:17
Show Gist options
  • Save zombor/430079 to your computer and use it in GitHub Desktop.
Save zombor/430079 to your computer and use it in GitHub Desktop.
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