Small change to reduce PHP notice.
This commit is contained in:
parent
d05344d5e3
commit
be6e6e2933
@ -114,6 +114,8 @@ class Upload implements Extension {
|
||||
throw new UploadException("Can not upload more than one image for replacing.");
|
||||
}
|
||||
|
||||
$tags = ''; // Tags aren't changed when uploading. Set to null to stop PHP warnings.
|
||||
|
||||
if (count($_FILES)) {
|
||||
foreach($_FILES as $file) {
|
||||
$ok = $this->try_upload($file, $tags, $source, $image_id);
|
||||
|
Loading…
x
Reference in New Issue
Block a user