make sure extension is not-null for transloads
This commit is contained in:
parent
ce26a87aa6
commit
a51cab58aa
@ -444,6 +444,10 @@ class Upload extends Extension
|
|||||||
$metadata['filename'] = $filename;
|
$metadata['filename'] = $filename;
|
||||||
$metadata['tags'] = $tags;
|
$metadata['tags'] = $tags;
|
||||||
$metadata['source'] = (($url == $source) && !$config->get_bool(UploadConfig::TLSOURCE) ? "" : $source);
|
$metadata['source'] = (($url == $source) && !$config->get_bool(UploadConfig::TLSOURCE) ? "" : $source);
|
||||||
|
$metadata['extension'] = "";
|
||||||
|
if (array_key_exists('extension', $pathinfo)) {
|
||||||
|
$metadata['extension'] = $pathinfo['extension'];
|
||||||
|
}
|
||||||
|
|
||||||
/* check for locked > adds to metadata if it has */
|
/* check for locked > adds to metadata if it has */
|
||||||
if (!empty($locked)) {
|
if (!empty($locked)) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user