Another small change to reduce PHP notices.
This commit is contained in:
parent
be6e6e2933
commit
8422e0050a
@ -114,6 +114,7 @@ class Upload implements Extension {
|
|||||||
throw new UploadException("Can not upload more than one image for replacing.");
|
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.
|
$tags = ''; // Tags aren't changed when uploading. Set to null to stop PHP warnings.
|
||||||
|
|
||||||
if (count($_FILES)) {
|
if (count($_FILES)) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user