Small change to reduce PHP notice.

This commit is contained in:
green-ponies (jgen) 2011-09-04 11:41:25 -04:00
parent d05344d5e3
commit be6e6e2933

View File

@ -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);