diff --git a/pandora_console/include/functions_events.php b/pandora_console/include/functions_events.php index 9563732c68..5fd0ae3481 100644 --- a/pandora_console/include/functions_events.php +++ b/pandora_console/include/functions_events.php @@ -4580,7 +4580,7 @@ function events_page_comments($event, $ajax=false) continue; } - $comments_array[] = json_decode(io_safe_output($comm), true); + $comments_array[] = io_safe_output(json_decode($comm, true)); } } else { // If comments are not stored in json, the format is old. diff --git a/pandora_console/include/functions_ui.php b/pandora_console/include/functions_ui.php index 3f2736c698..71c0e448d3 100755 --- a/pandora_console/include/functions_ui.php +++ b/pandora_console/include/functions_ui.php @@ -5697,7 +5697,7 @@ function ui_print_comments($comments) continue; } - $comments_array[] = json_decode(io_safe_output($comm), true); + $comments_array[] = io_safe_output(json_decode($comm, true)); } }