Skip to content
This repository has been archived by the owner on Jan 8, 2021. It is now read-only.

Commit

Permalink
- Undefined index causing hoards of logs!
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonbahl committed Oct 22, 2019
1 parent f2428eb commit 97d2456
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Tracing.php
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ public static function _sanitize_resolver_trace( array $trace ) {

$sanitized_trace = [];

$sanitized_trace['path'] = ! empty( $trace['path'] && is_array( $trace['path'] ) ) ? array_map( ['WPGraphQL\Extensions\Insights\Tracing', '_sanitize_trace_resolver_path' ], $trace['path'] ) : [];
$sanitized_trace['path'] = ! empty( $trace['path'] ) && is_array( $trace['path'] ) ? array_map( ['WPGraphQL\Extensions\Insights\Tracing', '_sanitize_trace_resolver_path' ], $trace['path'] ) : [];
$sanitized_trace['parentType'] = ! empty( $trace['parentType'] ) ? esc_html( $trace['parentType'] ) : '';
$sanitized_trace['fieldName'] = ! empty( $trace['fieldName'] ) ? esc_html( $trace['fieldName'] ) : '';
$sanitized_trace['returnType'] = ! empty( $trace['returnType'] ) ? esc_html( $trace['returnType'] ) : '';
Expand Down

0 comments on commit 97d2456

Please sign in to comment.