mirror of
https://github.com/splitbrain/dokuwiki-plugin-captcha.git
synced 2025-08-20 16:35:27 +00:00
fix deprecated use of curly braces
This commit is contained in:
@ -282,13 +282,13 @@ class helper_plugin_captcha extends DokuWiki_Plugin {
|
|||||||
|
|
||||||
$len = strlen($text);
|
$len = strlen($text);
|
||||||
for($i = 0; $i < $len - 1; $i++) {
|
for($i = 0; $i < $len - 1; $i++) {
|
||||||
$new .= $text{$i};
|
$new .= $text[$i];
|
||||||
|
|
||||||
if(!is_numeric($text{$i + 1})) {
|
if(!is_numeric($text[$i + 1])) {
|
||||||
$new .= $spaces[array_rand($spaces)];
|
$new .= $spaces[array_rand($spaces)];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$new .= $text{$len - 1};
|
$new .= $text[$len - 1];
|
||||||
return $new;
|
return $new;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user