From 8422e0050aed277e858e6d8747414845b051dc9d Mon Sep 17 00:00:00 2001 From: "green-ponies (jgen)" <jgen.tech@gmail.com> Date: Sun, 4 Sep 2011 11:52:34 -0400 Subject: [PATCH] Another small change to reduce PHP notices. --- ext/upload/main.php | 1 + 1 file changed, 1 insertion(+) diff --git a/ext/upload/main.php b/ext/upload/main.php index 688002dd..c9b3be48 100644 --- a/ext/upload/main.php +++ b/ext/upload/main.php @@ -114,6 +114,7 @@ class Upload implements Extension { throw new UploadException("Can not upload more than one image for replacing."); } + $source = isset($_POST['source']) ? $_POST['source'] : null; $tags = ''; // Tags aren't changed when uploading. Set to null to stop PHP warnings. if (count($_FILES)) {