aboutsummaryrefslogtreecommitdiffstats
path: root/include/acl_selectors.php
diff options
context:
space:
mode:
authorolivierm <olivier@migeot.org>2011-02-24 18:52:08 +0100
committerolivierm <olivier@migeot.org>2011-02-24 18:52:08 +0100
commitd2c47924eb186a0839fe107b271ccbf27d15fe10 (patch)
treead94b3b6ed5232fc388ddb3212d1f0dccb3eb893 /include/acl_selectors.php
parent42d1474ff1388f987961ba24b0218a8e6ff0f47c (diff)
parent8ed085c64e4fb097394d0cc93f8744606c15527b (diff)
downloadvolse-hubzilla-d2c47924eb186a0839fe107b271ccbf27d15fe10.tar.gz
volse-hubzilla-d2c47924eb186a0839fe107b271ccbf27d15fe10.tar.bz2
volse-hubzilla-d2c47924eb186a0839fe107b271ccbf27d15fe10.zip
Merge commit 'mike/master'
Diffstat (limited to 'include/acl_selectors.php')
-rw-r--r--include/acl_selectors.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/acl_selectors.php b/include/acl_selectors.php
index 94f51a9ff..9467531d9 100644
--- a/include/acl_selectors.php
+++ b/include/acl_selectors.php
@@ -26,7 +26,7 @@ function group_select($selname,$selclass,$preselected = false,$size = 4) {
$selected = " selected=\"selected\" ";
else
$selected = '';
- $trimmed = substr($rr['name'],0,12);
+ $trimmed = mb_substr($rr['name'],0,12);
$o .= "<option value=\"{$rr['id']}\" $selected title=\"{$rr['name']}\" >$trimmed</option>\r\n";
}
@@ -89,7 +89,7 @@ function contact_select($selname, $selclass, $preselected = false, $size = 4, $p
else
$selected = '';
- $trimmed = substr($rr['name'],0,22);
+ $trimmed = mb_substr($rr['name'],0,22);
$o .= "<option value=\"{$rr['id']}\" $selected title=\"{$rr['name']}|{$rr['url']}\" >$trimmed</option>\r\n";
}