Change. Reduce too long app data in active calls app.

Problem that when you have large app data (>7k in my case)
it takes over 2 pages to display only single channel.
This commit is contained in:
Alexey Melnichuk 2015-12-24 12:48:25 +03:00
parent ac87b19b4f
commit df4d2216dd
1 changed files with 5 additions and 0 deletions

View File

@ -183,6 +183,11 @@ else {
}
}
// reduce too long app data
if(strlen($application_data) > 512) {
$application_data = substr($application_data, 0, 512) . ' <b>...</b>';
}
echo "<tr>\n";
echo "<td valign='top' class='".$row_style[$c]."'>".$sip_profile."&nbsp;</td>\n";
echo "<td valign='top' class='".$row_style[$c]."'>".$created."&nbsp;</td>\n";