handle_post: set $debug after opening board
- so it doesn't overwrite the global debug variable. - global variables are dumb.
This commit is contained in:
parent
8ebe1aa560
commit
7cfe5cc0e3
3
post.php
3
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'])));
|
||||
|
|
Loading…
Reference in New Issue