Skip to content

Commit

Permalink
Merge pull request #33 from 10up/fix/query-log-decode
Browse files Browse the repository at this point in the history
Only json_decode the query log when it is a string
  • Loading branch information
felipeelia authored Apr 19, 2021
2 parents 07834ad + 4d6e462 commit 993b857
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion classes/class-ep-query-log.php
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,6 @@ public function json_encode_query_log( $value ) {
* @return array
*/
public function json_decode_query_log( $value ) {
return json_decode( $value, true );
return ( is_string( $value ) ) ? json_decode( $value, true ) : $value;
}
}

0 comments on commit 993b857

Please sign in to comment.