diff options
-rw-r--r-- | sections/ajax/forum/forum.php | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sections/ajax/forum/forum.php b/sections/ajax/forum/forum.php index a465d8c..32a6a52 100644 --- a/sections/ajax/forum/forum.php +++ b/sections/ajax/forum/forum.php @@ -20,9 +20,7 @@ if (!is_number($ForumID)) { } if (isset($_GET['pp'])) { - - $PerPage = $_GET['pp']; - + $PerPage = (int) $_GET['pp']; } elseif (isset($LoggedUser['PostsPerPage'])) { $PerPage = $LoggedUser['PostsPerPage']; } else { |