Add isempty check for POST variable for multi file upload via URL
This commit is contained in:
parent
4800138b29
commit
9b9b0f0a7e
2
post.php
2
post.php
@ -589,8 +589,10 @@ if (isset($_POST['delete'])) {
|
|||||||
|
|
||||||
for( $counter = 1; $counter <= $config['max_images']; $counter++ ) {
|
for( $counter = 1; $counter <= $config['max_images']; $counter++ ) {
|
||||||
$varname = "file_url". $counter;
|
$varname = "file_url". $counter;
|
||||||
|
if (isset($_POST[$varname]) && !empty($_POST[$varname])){
|
||||||
upload_by_url($config,$post,$_POST[$varname]);
|
upload_by_url($config,$post,$_POST[$varname]);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user