From be6e6e2933603b28570242c86d0bbb44c9eb3770 Mon Sep 17 00:00:00 2001 From: "green-ponies (jgen)" Date: Sun, 4 Sep 2011 11:41:25 -0400 Subject: [PATCH] Small change to reduce PHP notice. --- ext/upload/main.php | 2 ++ 1 file changed, 2 insertions(+) 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);