Skip to content

Commit

Permalink
Update Config.php (ezyang#211)
Browse files Browse the repository at this point in the history
Fixed Undefined index: class
  • Loading branch information
dilongfa authored and ezyang committed Jul 14, 2019
1 parent 5a90c92 commit 524cd08
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/HTMLPurifier/Config.php
Original file line number Diff line number Diff line change
Expand Up @@ -890,7 +890,7 @@ protected function triggerError($msg, $no)
// zip(tail(trace), trace) -- but PHP is not Haskell har har
for ($i = 0, $c = count($trace); $i < $c - 1; $i++) {
// XXX this is not correct on some versions of HTML Purifier
if ($trace[$i + 1]['class'] === 'HTMLPurifier_Config') {
if (isset($trace[$i + 1]['class']) && $trace[$i + 1]['class'] === 'HTMLPurifier_Config') {
continue;
}
$frame = $trace[$i];
Expand Down

0 comments on commit 524cd08

Please sign in to comment.