From c3c7bc4fc3cbec9bdfa70a781f3f6f08166b6ec9 Mon Sep 17 00:00:00 2001 From: eli Date: Thu, 7 Sep 2023 05:45:14 -1000 Subject: [PATCH] fix float division deprecation warning breaking `captcha.php` json --- inc/captcha/captcha.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/captcha/captcha.php b/inc/captcha/captcha.php index 7c54fa3c..9617efae 100644 --- a/inc/captcha/captcha.php +++ b/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() {