Skip to content

Instantly share code, notes, and snippets.

@crishoj
Created January 29, 2010 18:41
Show Gist options
  • Save crishoj/289973 to your computer and use it in GitHub Desktop.
Save crishoj/289973 to your computer and use it in GitHub Desktop.
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