From 7cfe5cc0e30f2d524b13a0df52624776b1612c50 Mon Sep 17 00:00:00 2001 From: towards-a-new-leftypol Date: Tue, 31 Dec 2024 07:07:36 -0500 Subject: [PATCH] handle_post: set $debug after opening board - so it doesn't overwrite the global debug variable. - global variables are dumb. --- post.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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'])));