diff options
Diffstat (limited to 'mod')
-rw-r--r-- | mod/file/actions/file/upload.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/mod/file/actions/file/upload.php b/mod/file/actions/file/upload.php index 4deaabcac..e04203f67 100644 --- a/mod/file/actions/file/upload.php +++ b/mod/file/actions/file/upload.php @@ -67,6 +67,11 @@ if ($new_file) { register_error(elgg_echo('file:noaccess')); forward(REFERER); } + + if (!$title) { + // user blanked title, but we need one + $title = $file->title; + } } $file->title = $title; |