summaryrefslogtreecommitdiff
path: root/Postman/PostmanLogFields.php
diff options
context:
space:
mode:
Diffstat (limited to 'Postman/PostmanLogFields.php')
-rw-r--r--Postman/PostmanLogFields.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/Postman/PostmanLogFields.php b/Postman/PostmanLogFields.php
index e1f9c90..9299586 100644
--- a/Postman/PostmanLogFields.php
+++ b/Postman/PostmanLogFields.php
@@ -49,6 +49,11 @@ class PostmanLogFields {
}
private function maybe_json( $json ) {
+
+ if ( is_array( $json ) ) {
+ return implode( ',', $json );
+ }
+
if ( $this->isJson( $json ) ) {
return implode( ',', json_decode( $json, true ) );
}