From b79f3d67db73dc4cb2c1ec7f04f7688a28575e67 Mon Sep 17 00:00:00 2001 From: Nao Date: Sat, 22 Mar 2014 23:57:08 +0100 Subject: [PATCH] - Who cares about an extra microsecond when it saves 50 bytes of code? What? In PHP? Okay, I just wanted to harmonize this block with Display.php's equivalent. (MessageIndex.php) --- core/app/MessageIndex.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/core/app/MessageIndex.php b/core/app/MessageIndex.php index 655d444b..6728788b 100644 --- a/core/app/MessageIndex.php +++ b/core/app/MessageIndex.php @@ -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;