Accidentally removed important line of code...
This commit is contained in:
parent
ba5075ebbd
commit
ecea978fad
1
post.php
1
post.php
@ -209,6 +209,7 @@
|
|||||||
$post['password'] = $_POST['password'];
|
$post['password'] = $_POST['password'];
|
||||||
$post['filename'] = get_magic_quotes_gpc() ? stripslashes($_FILES['file']['name']) : $_FILES['file']['name'];
|
$post['filename'] = get_magic_quotes_gpc() ? stripslashes($_FILES['file']['name']) : $_FILES['file']['name'];
|
||||||
$post['has_file'] = $OP || !empty($_FILES['file']['tmp_name']);
|
$post['has_file'] = $OP || !empty($_FILES['file']['tmp_name']);
|
||||||
|
$post['mod'] = isset($_POST['mod']) && $_POST['mod'];
|
||||||
|
|
||||||
if($config['force_body'] && empty($post['body']))
|
if($config['force_body'] && empty($post['body']))
|
||||||
error($config['error']['tooshort_body']);
|
error($config['error']['tooshort_body']);
|
||||||
|
Loading…
Reference in New Issue
Block a user