From 42a8685586681c3bedc82a8f05829a8415578706 Mon Sep 17 00:00:00 2001 From: Jorge Rincon Date: Thu, 22 Jun 2023 15:30:55 +0200 Subject: [PATCH] #9866 fixed display of notifications with very long text strings --- pandora_console/include/functions_notifications.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pandora_console/include/functions_notifications.php b/pandora_console/include/functions_notifications.php index eab3ff5067..e4cd748210 100644 --- a/pandora_console/include/functions_notifications.php +++ b/pandora_console/include/functions_notifications.php @@ -1096,6 +1096,11 @@ function notifications_print_dropdown_element($message_info) $message_info['subject'] = io_safe_input($img); } + if (strlen($body_preview) >= 170) { + $body_preview = substr($body_preview, 0, 150); + $body_preview .= __('. Read More...'); + } + return sprintf( "