Skip to content

Commit

Permalink
Be more strict about when to reset this ini value.
Browse files Browse the repository at this point in the history
  • Loading branch information
johnbillion committed Oct 17, 2023
1 parent 6ca0585 commit 5ba478b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion collectors/php_errors.php
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ public function tear_down() {
error_reporting( $this->error_reporting );
}

if ( false !== $this->display_errors ) {
if ( is_string( $this->display_errors ) ) {
ini_set( 'display_errors', $this->display_errors );
}

Expand Down

0 comments on commit 5ba478b

Please sign in to comment.