aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/ws_functions.inc.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/ws_functions.inc.php b/include/ws_functions.inc.php
index 73fad605f..bad46a12e 100644
--- a/include/ws_functions.inc.php
+++ b/include/ws_functions.inc.php
@@ -1244,7 +1244,7 @@ SELECT
// database registration
$insert = array(
- 'file' => $filename_wo_ext.'.jpg',
+ 'file' => !empty($params['original_filename']) ? $params['original_filename'] : $filename_wo_ext.'.jpg',
'date_available' => $dbnow,
'tn_ext' => 'jpg',
'name' => $params['name'],