Skip to content
Permalink
Browse files

! Fixing harmless issue when when trying to request a negative number…

… of topics on the homepage. (Home.template.php)
  • Loading branch information...
Nao committed May 11, 2019
1 parent 9de5de8 commit 9fd7470563c10574cb153195742f8dee246881b7
Showing with 1 addition and 1 deletion.
  1. +1 −1 core/html/Home.template.php
@@ -16,7 +16,7 @@ function template_home_topics($n = 0)
{
global $txt;
$n = isset($_REQUEST['n']) ? (int) $_REQUEST['n'] : ($n ?: 5);
$n = isset($_REQUEST['n']) ? max(5, (int) $_REQUEST['n']) : ($n ?: 5);
$next = $n < 50 ? ($n < 20 ? ($n < 10 ? 10 : 20) : 50) : 100;
echo '

0 comments on commit 9fd7470

Please sign in to comment.
You can’t perform that action at this time.