diff options
| author | jove <no@no.com> | 2016-03-05 02:44:33 +0000 |
|---|---|---|
| committer | jove <no@no.com> | 2016-03-05 02:46:43 +0000 |
| commit | 1bacfecdfe9d6050452327bbdb9fe8894a0192d0 (patch) | |
| tree | 40bdc74359a04a7006a42b41a64172bc146e1769 /post.php | |
| parent | 9feea5b43626b594ea4858a9ded6dc45e30c9ce6 (diff) | |
Better board lock work around.
Taking into account barrucadu's comments.
Diffstat (limited to 'post.php')
| -rw-r--r-- | post.php | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -17,7 +17,9 @@ if (get_magic_quotes_gpc()) { $_POST = strip_array($_POST); } -if ((!isset($_POST['mod']) || !$_POST['mod']) && is_array($config['board_locked']) && in_array(strtolower($_POST["board"]), $config['board_locked'])) { +if ((!isset($_POST['mod']) || !$_POST['mod']) + && ($config['board_locked']===true + || (is_array($config['board_locked']) && in_array(strtolower($_POST['board']), $config['board_locked'])))){ error("Board is locked"); } |
