Skip to content
Permalink
Browse files

FIX: Fixed incompatibility with PHP 7.2 (count(STRING)) when creating…

… roles

Fixes #185
  • Loading branch information...
LarsMichelsen committed Jun 1, 2019
1 parent bbd0cf7 commit 0cf1d081370aed8c85e58a1042a82b84566f529a
Showing with 3 additions and 1 deletion.
  1. +2 −0 ChangeLog
  2. +1 −1 share/server/core/classes/ViewManageRoles.php
@@ -1,4 +1,6 @@
1.9.12
Frontend
* FIX: Fixed incompatibility with PHP 7.2 (count(STRING)) when creating roles

1.9.11
Frontend
@@ -35,7 +35,7 @@ private function addForm() {
if (!$name)
throw new FieldInputError('name', l('Please specify a name'));
if (count($name) > AUTH_MAX_ROLENAME_LENGTH)
if (strlen($name) > AUTH_MAX_ROLENAME_LENGTH)
throw new FieldInputError('name', l('This name is too long'));
if (!preg_match(MATCH_ROLE_NAME, $name))

0 comments on commit 0cf1d08

Please sign in to comment.
You can’t perform that action at this time.