Browse Source

fix float division deprecation warning breaking `captcha.php` json

main
eli 8 months ago
committed by -
parent
commit
cf5a3e0882
  1. 2
      inc/captcha/captcha.php

2
inc/captcha/captcha.php

@ -41,7 +41,7 @@ class CzaksCaptcha {
function mutate_sizes() {
foreach ($this->content as &$v) {
if (!isset ($v['font-size']))
$v['font-size'] = rand($this->height/3 - 4, $this->height/3 + 8);
$v['font-size'] = rand(intval($this->height/3) - 4, intval($this->height/3) + 8);
}
}
function mutate_positions() {

Loading…
Cancel
Save