Skip to content

Commit

Permalink
- Who cares about an extra microsecond when it saves 50 bytes of code…
Browse files Browse the repository at this point in the history
…? What? In PHP? Okay, I just wanted to harmonize this block with Display.php's equivalent. (MessageIndex.php)
  • Loading branch information
Nao committed Mar 22, 2014
1 parent 72b65af commit b79f3d6
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions core/app/MessageIndex.php
Expand Up @@ -61,12 +61,10 @@ function MessageIndex()

// Right, let's only index normal stuff!
if (count($_GET) > 1)
{
$session_name = session_name();
foreach ($_GET as $k => $v)
if (!in_array($k, array('board', 'start', $session_name)))
if (!in_array($k, array('board', 'start', session_name())))
$context['robot_no_index'] = true;
}

if (!empty($_REQUEST['start']) && (!is_numeric($_REQUEST['start']) || $_REQUEST['start'] % $context['messages_per_page'] != 0))
$context['robot_no_index'] = true;

Expand Down

0 comments on commit b79f3d6

Please sign in to comment.