From d9d98fe1e32221c012fdabb899d96e3cc790c761 Mon Sep 17 00:00:00 2001 From: Calvo Date: Thu, 25 Mar 2021 13:20:30 +0100 Subject: [PATCH] Fixed mixed response from event datatables --- pandora_console/operation/events/events.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pandora_console/operation/events/events.php b/pandora_console/operation/events/events.php index 4884280080..124cd7a6a4 100644 --- a/pandora_console/operation/events/events.php +++ b/pandora_console/operation/events/events.php @@ -415,6 +415,11 @@ if (is_ajax()) { ] ); $response = ob_get_clean(); + + // Clean output buffer. + while (ob_get_level() !== 0) { + ob_end_clean(); + } } catch (Exception $e) { echo json_encode( ['error' => $e->getMessage()]