Skip to content

Commit

Permalink
Update http.php
Browse files Browse the repository at this point in the history
Exit foreach loop early if certain data are not defined. When undefined they cause many PHP notices.

Fixes johnbillion#500
  • Loading branch information
afragen authored Feb 22, 2020
1 parent 8844472 commit cfb9d27
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions output/html/http.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,9 @@ public function output() {
$i = 0;

foreach ( $data['http'] as $key => $row ) {
if ( ! isset( $row['ltime'], $row['component'] ) ){
continue;
}
$ltime = $row['ltime'];
$i++;
$is_error = false;
Expand Down

0 comments on commit cfb9d27

Please sign in to comment.