diff --git a/post.php b/post.php index 1040ac7f..4dfc4d3d 100644 --- a/post.php +++ b/post.php @@ -458,7 +458,6 @@ function handle_post(){ global $config, $dropped_post, $board, $mod, $pdo, $debug; $time_1 = microtime(true); - $debug['time']['post'] = array(); init_global_post_cleanup(); @@ -472,6 +471,8 @@ function handle_post(){ if (!openBoard($post['board'])) error($config['error']['noboard']); + $debug['time']['post'] = array(); + $board_locked_check = (!isset($_POST['mod']) || !$_POST['mod']) && ($config['board_locked']===true || (is_array($config['board_locked']) && in_array(strtolower($_POST['board']), $config['board_locked'])));