From e2544abd503ddcbd98a31c75b528aac0c980df35 Mon Sep 17 00:00:00 2001 From: Friendika Date: Mon, 31 Jan 2011 19:49:56 -0800 Subject: [PATCH] truncate names in acl selector --- include/acl_selectors.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/include/acl_selectors.php b/include/acl_selectors.php index 554782a8..63756ce3 100644 --- a/include/acl_selectors.php +++ b/include/acl_selectors.php @@ -17,8 +17,9 @@ function group_select($selname,$selclass,$preselected = false,$size = 4) { $selected = " selected=\"selected\" "; else $selected = ''; + $trimmed = substr($rr['name'],0,12); - $o .= "\r\n"; + $o .= "\r\n"; } } @@ -66,7 +67,9 @@ function contact_select($selname, $selclass, $preselected = false, $size = 4, $p else $selected = ''; - $o .= "\r\n"; + $trimmed = substr($rr['name'],0,24); + + $o .= "\r\n"; } }