Created
January 29, 2010 18:41
-
-
Save crishoj/289973 to your computer and use it in GitHub Desktop.
This file contains 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
Index: include/error/Hoptoad.php | |
=================================================================== | |
--- include/error/Hoptoad.php (revision 2530) | |
+++ include/error/Hoptoad.php (working copy) | |
@@ -268,8 +268,8 @@ | |
if (isset($entry['class']) && $entry['class'] == 'Services_Hoptoad') continue; | |
$line_node = $backtrace->addChild('line'); | |
- $line_node->addAttribute('file', $entry['file']); | |
- $line_node->addAttribute('number', $entry['line']); | |
+ $line_node->addAttribute('file', isset($entry['file']) ? $entry['file'] : 'unknown'); | |
+ $line_node->addAttribute('number', isset($entry['line']) ? $entry['line'] : 'unknown'); | |
$line_node->addAttribute('method', $entry['function']); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment