Skip to content

Commit

Permalink
Prevent PHP notice by making sure $call['file'] is set before trying …
Browse files Browse the repository at this point in the history
…to interact with it in getData()
  • Loading branch information
mintindeed committed Apr 10, 2012
1 parent 163f2ea commit 886a3bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Tracer.php
Expand Up @@ -91,7 +91,7 @@ public function getData()
$functionChain[] = (isset($call['class']) ? "{$call['class']}::" : '') . $call['function'];

// We've got a plugin
if (false !== strpos($call['file'], $pluginsPath)) {
if ( isset($call['file']) && false !== strpos($call['file'], $pluginsPath)) {
list($root) = explode('/', plugin_basename($call['file']), 2);
$file = str_replace($pluginsPath, '', $call['file']);

Expand Down

0 comments on commit 886a3bc

Please sign in to comment.