mirror of
https://github.com/vichan-devel/vichan.git
synced 2024-11-23 23:20:57 +01:00
fix float division deprecation warning breaking captcha.php
json
This commit is contained in:
parent
fbc2464c96
commit
c3c7bc4fc3
@ -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…
Reference in New Issue
Block a user