diff options
| author | jove <no@no.com> | 2016-03-04 21:22:17 +0000 |
|---|---|---|
| committer | jove <no@no.com> | 2016-03-04 21:27:08 +0000 |
| commit | 9feea5b43626b594ea4858a9ded6dc45e30c9ce6 (patch) | |
| tree | 727330e3aefdea8c9141c0694e0588070a8c49b2 /post.php | |
| parent | cc62a579bc59ed3366948a622e81f5f9c6cafdc3 (diff) | |
Board lock workaround
Works around the fact that individual board configs are not loaded when posting by making locked boards a global setting that takes an array of boards
Obviously the proper fix is to correctly load the board configs but I can't be arsed.
Diffstat (limited to 'post.php')
| -rw-r--r-- | post.php | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -17,7 +17,7 @@ if (get_magic_quotes_gpc()) { $_POST = strip_array($_POST); } -if ((!isset($_POST['mod']) || !$_POST['mod']) && $config['board_locked']) { +if ((!isset($_POST['mod']) || !$_POST['mod']) && is_array($config['board_locked']) && in_array(strtolower($_POST["board"]), $config['board_locked'])) { error("Board is locked"); } |
