diff --git a/ext/upload/main.php b/ext/upload/main.php index fd795fdf..688002dd 100644 --- a/ext/upload/main.php +++ b/ext/upload/main.php @@ -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);