diff --git a/public_html/lists/admin/list.php b/public_html/lists/admin/list.php
index 1523a3b9d..e7bb798ed 100644
--- a/public_html/lists/admin/list.php
+++ b/public_html/lists/admin/list.php
@@ -239,13 +239,14 @@ function listMemberCounts($listId)
while ($row = Sql_fetch_array($result)) {
$membersDisplay = listMemberCounts($row['id']);
- $desc = stripslashes($row['description']);
+ $desc = stripslashes($row['description'] ?? '');
//## allow plugins to add columns
// @@@ TODO review this
//foreach ($GLOBALS['plugins'] as $plugin) {
//$desc = $plugin->displayLists($row) . $desc;
//}
+ $displayDesc = strlen($desc) > 50 ? substr($desc, 0, 50) . '...' : $desc;
$element = ''.''.
stripslashes(cleanListName($row['name']).'');
+ if ($desc !== '') {
+ $element .= '
' .
+ htmlspecialchars($displayDesc, ENT_QUOTES, 'UTF-8') .
+ '';
+ }
+
$ls->addElement($element);
$ls->setClass($element, 'rows row1');
$ls->addColumn($element,