Skip to content

Commit

Permalink
! Screwed up operator precedence. I can only say this Your Honor: it'…
Browse files Browse the repository at this point in the history
…s the first time I ever used a simplified ?: operator... (Home.template.php)
  • Loading branch information
Nao committed Nov 12, 2014
1 parent d424bb0 commit 1e70f28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/html/Home.template.php
Expand Up @@ -16,7 +16,7 @@ function template_home_topics($n = 0)
{
global $txt;

$n = $n ?: isset($_REQUEST['n']) ? (int) $_REQUEST['n'] : 5;
$n = $n ?: (isset($_REQUEST['n']) ? (int) $_REQUEST['n'] : 5);
$next = $n < 50 ? ($n < 20 ? ($n < 10 ? 10 : 20) : 50) : 100;

echo '
Expand Down

0 comments on commit 1e70f28

Please sign in to comment.