Skip to content

Commit

Permalink
Check for existance of args key before accessing it (fixes GH-30)
Browse files Browse the repository at this point in the history
  • Loading branch information
dcramer committed Aug 9, 2012
1 parent 82f0b3f commit 5013673
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/Raven/Stacktrace.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,12 @@ public static function get_stack_info($stack)
$result = array();
foreach($stack as $frame) {
if (!isset($frame['file'])) {
$args = (is_array($frame['args']) ? implode(',', $frame['args']) : $frame['args']);
if (isset($frame['args'])) {
$args = (is_array($frame['args']) ? implode(',', $frame['args']) : $frame['args']);
}
else {
$args = arra();
}
if (isset($frame['class'])) {
$context['line'] = sprintf('%s%s%s(%s)',
$frame['class'], $frame['type'], $frame['function'],
Expand Down

0 comments on commit 5013673

Please sign in to comment.