Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Use isset for array index checking

  • Loading branch information...
commit 0f01001c2019e95818b3ee776d6d6746a011261b 1 parent 1c46e90
@snikch snikch authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 Services/Airbrake.php
View
4 Services/Airbrake.php
@@ -301,8 +301,8 @@ function addXmlBacktrace($parent)
if (isset($entry['class']) && $entry['class'] == get_class($this)) continue;
$line_node = $backtrace->addChild('line');
- if($entry['file']) $line_node->addAttribute('file', $entry['file']);
- if($entry['line']) $line_node->addAttribute('number', $entry['line']);
+ if(isset($entry['file'])) $line_node->addAttribute('file', $entry['file']);
+ if(isset($entry['line'])) $line_node->addAttribute('number', $entry['line']);
$line_node->addAttribute('method', $entry['function']);
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.