mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-17 13:43:38 +09:00
- fixed strlen() to mb_strlen();
This commit is contained in:
@@ -14,7 +14,7 @@
|
||||
* @return string
|
||||
*/
|
||||
function um_trim_string( $s, $length = 20 ) {
|
||||
$s = strlen( $s ) > $length ? substr( $s, 0, $length ) . "..." : $s;
|
||||
$s = mb_strlen( $s ) > $length ? substr( $s, 0, $length ) . "..." : $s;
|
||||
|
||||
return $s;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user