summaryrefslogtreecommitdiff
path: root/inc/anti-bot.php
diff options
context:
space:
mode:
authorAppleman1234 <applemansigloo@gmail.com>2022-09-25 13:22:40 +1000
committerAppleman1234 <applemansigloo@gmail.com>2022-09-25 13:22:40 +1000
commit92561d7f36508b7e0271926e417adf0e2e53916b (patch)
treea8588b4f70af276c5acf58836e33b1f6ff5c61e8 /inc/anti-bot.php
parent6f1083e4b51fc9c4c594f6c72cf3d84ef4d0298b (diff)
Initial attempt a switch to composer and PHP-8.1 compatibility
Diffstat (limited to 'inc/anti-bot.php')
-rw-r--r--inc/anti-bot.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/inc/anti-bot.php b/inc/anti-bot.php
index 59f5351f..4c321176 100644
--- a/inc/anti-bot.php
+++ b/inc/anti-bot.php
@@ -123,7 +123,7 @@ class AntiBot {
$html = '';
if ($count === false) {
- $count = mt_rand(1, abs(count($this->inputs) / 15) + 1);
+ $count = mt_rand(1, (int)abs(count($this->inputs) / 15) + 1);
}
if ($count === true) {