1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2024-11-27 17:00:52 +01:00

Merge pull request #625 from frozenpandaman/patch-1

fix float division deprecation warning breaking `captcha.php` json
This commit is contained in:
RealAngeleno 2023-09-10 21:46:19 -07:00 committed by GitHub
commit cca659bd1f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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() {