From 0bb1d869af027cd9223be0e5eea4a2a6dbc77c38 Mon Sep 17 00:00:00 2001 From: slawkens Date: Fri, 1 Jun 2018 11:33:22 +0200 Subject: [PATCH] * (internal) change intval() function to (int) casting (up to 6x faster) --- system/pages/highscores.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/pages/highscores.php b/system/pages/highscores.php index 42b0556c..18cfd7fa 100644 --- a/system/pages/highscores.php +++ b/system/pages/highscores.php @@ -44,7 +44,7 @@ define('SKILL_BALANCE', -2); $skill = POT::SKILL__LEVEL; if(is_numeric($list)) { - $list = intval($list); + $list = (int) $list; if($list >= POT::SKILL_FIRST && $list <= SKILL__LAST) $skill = $list; }