mirror of
https://github.com/openvk/openvk
synced 2024-11-11 01:19:53 +03:00
Groups: Fix calculation of length of admin comment
This commit is contained in:
parent
1eb5939378
commit
787587015d
1 changed files with 2 additions and 2 deletions
|
@ -158,8 +158,8 @@ final class GroupPresenter extends OpenVKPresenter
|
|||
|
||||
$this->flashFail("succ", "Операция успешна", "Комментарий к администратору удален");
|
||||
} elseif($comment) {
|
||||
if(strlen($comment) > 36) {
|
||||
$commentLength = (string) strlen($comment);
|
||||
if(mb_strlen($comment) > 36) {
|
||||
$commentLength = (string) mb_strlen($comment);
|
||||
$this->flashFail("err", "Ошибка", "Комментарий слишком длинный ($commentLength символов вместо 36 символов)");
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue