mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-28 08:14:38 +02:00
Limited number of characters shown in the table - #2783
This commit is contained in:
parent
e0e098a7a6
commit
51af767549
@ -274,7 +274,12 @@ if (!empty($all_data)) {
|
|||||||
. human_time_comparation($session['utimestamp'], 'tiny');
|
. human_time_comparation($session['utimestamp'], 'tiny');
|
||||||
$data[3] = $session_ip_origen;
|
$data[3] = $session_ip_origen;
|
||||||
$description = str_replace(array(',', ', '), ', ', $session['descripcion']);
|
$description = str_replace(array(',', ', '), ', ', $session['descripcion']);
|
||||||
|
if(strlen($description)>100){
|
||||||
|
$data[4] = '<div >' . io_safe_output(substr($description, 0, 150).'...') . '</div>';
|
||||||
|
}
|
||||||
|
else{
|
||||||
$data[4] = '<div >' . io_safe_output($description) . '</div>';
|
$data[4] = '<div >' . io_safe_output($description) . '</div>';
|
||||||
|
}
|
||||||
|
|
||||||
array_push ($table->data, $data);
|
array_push ($table->data, $data);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user