diff --git a/pandora_console/operation/events/events.php b/pandora_console/operation/events/events.php index a1529ebcaf..76ec9d8e8e 100644 --- a/pandora_console/operation/events/events.php +++ b/pandora_console/operation/events/events.php @@ -1255,15 +1255,17 @@ if (is_ajax() === true) { ); } - $data = array_values( - array_filter( - ($data ?? []), - function ($item) { - return (bool) (array) $item; - } - ) - ); - $count = count($data); + if ($regex !== '') { + $data = array_values( + array_filter( + ($data ?? []), + function ($item) { + return (bool) (array) $item; + } + ) + ); + } + // RecordsTotal && recordsfiltered resultados totales. echo json_encode( [