mirror of
https://github.com/vichan-devel/vichan.git
synced 2024-11-30 18:24:29 +01:00
Close #267
This commit is contained in:
parent
8e811cec44
commit
ac8f15f0f2
2
post.php
2
post.php
@ -655,7 +655,7 @@ if (isset($_POST['delete'])) {
|
|||||||
if ($post['has_file']) {
|
if ($post['has_file']) {
|
||||||
$i = 0;
|
$i = 0;
|
||||||
foreach ($_FILES as $key => $file) {
|
foreach ($_FILES as $key => $file) {
|
||||||
if ($file['error'] > 0) {
|
if (!in_array($file['error'], array(UPLOAD_ERR_NO_FILE, UPLOAD_ERR_OK))) {
|
||||||
error(sprintf3($config['error']['phpfileserror'], array(
|
error(sprintf3($config['error']['phpfileserror'], array(
|
||||||
'index' => $i+1,
|
'index' => $i+1,
|
||||||
'code' => $file['error']
|
'code' => $file['error']
|
||||||
|
Loading…
Reference in New Issue
Block a user