aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/ws_functions.inc.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/ws_functions.inc.php b/include/ws_functions.inc.php
index 5c5d23b7a..fd87ef02e 100644
--- a/include/ws_functions.inc.php
+++ b/include/ws_functions.inc.php
@@ -909,7 +909,7 @@ function ws_images_add($params, &$service)
SELECT
COUNT(*) AS counter
FROM '.IMAGES_TABLE.'
- WHERE md5sum = \''.$params['file_sum'].'\'
+ WHERE md5sum = \''.$params['original_sum'].'\'
;';
list($counter) = mysql_fetch_row(pwg_query($query));
if ($counter != 0) {
@@ -1088,7 +1088,7 @@ SELECT
'filesize' => floor(filesize($file_path)/1024),
'width' => $width,
'height' => $height,
- 'md5sum' => $params['file_sum'],
+ 'md5sum' => $params['original_sum'],
);
$info_columns = array(