From e660fef809bfe1645650f2c0bc7e707633c92e9a Mon Sep 17 00:00:00 2001 From: Aleksandr Yakovlev Date: Tue, 8 Aug 2023 13:11:50 +0600 Subject: [PATCH] people count as int --- IUTClass.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/IUTClass.php b/IUTClass.php index 15ea4e3..093252b 100644 --- a/IUTClass.php +++ b/IUTClass.php @@ -56,7 +56,7 @@ class IUT { ); $row = $res->fetchRow(); if ( $row ) { - $vote_count = $row->votecount; + $vote_count = (int) $row->votecount; } $cache->set( $key, $vote_count ); }