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:
commit
cca659bd1f
@ -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