[CORE] Fix 'Array and string offset access syntax with curly braces is deprecated' in AuthCryptModule and DirectionDetectorPlugin
This commit is contained in:
@@ -85,7 +85,7 @@ class AuthCryptModule extends AuthenticationModule
|
||||
$salt = '';
|
||||
|
||||
for ($i=0; $i<$len; $i++) {
|
||||
$salt .= $chars{mt_rand(0, strlen($chars)-1)};
|
||||
$salt .= $chars[mt_rand(0, strlen($chars)-1)];
|
||||
}
|
||||
|
||||
return $salt;
|
||||
@@ -185,4 +185,4 @@ class AuthCryptModule extends AuthenticationModule
|
||||
_m('Authentication and password hashing with crypt()'));
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user