From 51af767549b9d8c202cec42fcaa2d434d5953b9c Mon Sep 17 00:00:00 2001 From: "tatiana.llorente@artica.es" Date: Fri, 21 Sep 2018 09:21:21 +0200 Subject: [PATCH] Limited number of characters shown in the table - #2783 --- pandora_console/general/logon_ok.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pandora_console/general/logon_ok.php b/pandora_console/general/logon_ok.php index c2ecec56da..1c720b6373 100644 --- a/pandora_console/general/logon_ok.php +++ b/pandora_console/general/logon_ok.php @@ -274,7 +274,12 @@ if (!empty($all_data)) { . human_time_comparation($session['utimestamp'], 'tiny'); $data[3] = $session_ip_origen; $description = str_replace(array(',', ', '), ', ', $session['descripcion']); - $data[4] = '
' . io_safe_output($description) . '
'; + if(strlen($description)>100){ + $data[4] = '
' . io_safe_output(substr($description, 0, 150).'...') . '
'; + } + else{ + $data[4] = '
' . io_safe_output($description) . '
'; + } array_push ($table->data, $data); }