forked from leftypol/leftypol
Add isempty check for POST variable for multi file upload via URL
This commit is contained in:
parent
45954b5144
commit
08f5412458
1 changed files with 3 additions and 1 deletions
4
post.php
4
post.php
|
@ -589,7 +589,9 @@ if (isset($_POST['delete'])) {
|
|||
|
||||
for( $counter = 1; $counter <= $config['max_images']; $counter++ ) {
|
||||
$varname = "file_url". $counter;
|
||||
upload_by_url($config,$post,$_POST[$varname]);
|
||||
if (isset($_POST[$varname]) && !empty($_POST[$varname])){
|
||||
upload_by_url($config,$post,$_POST[$varname]);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue