diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/ws_functions.inc.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/ws_functions.inc.php b/include/ws_functions.inc.php index f94a386a0..edd6296b2 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'], |