diff --git a/Panda.php b/Panda.php index 8edd76f..17d8c54 100644 --- a/Panda.php +++ b/Panda.php @@ -811,7 +811,7 @@ public static function error($heading, $subheading = "", $info = "", array $opti $output .= '
'; if ($options['trace']) { - $output .= 'trace | '; + $output .= 'trace | '; } $output .= 'close'; @@ -949,13 +949,15 @@ private static function __addReflectInfo($trace) if (isset($row['object'])) { $refLog[$i]['export'] = ReflectionObject::export($row['object'], true); } - $ref = new ReflectionMethod($row['class'], $row['function']); - $refLog[$i]['file'] = $ref->getFileName(); - $refLog[$i]['doc'] = $ref->getDocComment(); - $refLog[$i]['start'] = $ref->getStartLine(); - $refLog[$i]['end'] = $ref->getEndLine(); + if (method_exists($row['class'], $row['function'])) { + $ref = new ReflectionMethod($row['class'], $row['function']); + $refLog[$i]['file'] = $ref->getFileName(); + $refLog[$i]['doc'] = $ref->getDocComment(); + $refLog[$i]['start'] = $ref->getStartLine(); + $refLog[$i]['end'] = $ref->getEndLine(); + $i++; + } } - $i++; } return $refLog; } diff --git a/data/htdocs/__panda/edit/index.php b/data/htdocs/__panda/edit/index.php index 5213a66..e396c4e 100644 --- a/data/htdocs/__panda/edit/index.php +++ b/data/htdocs/__panda/edit/index.php @@ -1,4 +1,5 @@