From 83275fd03618ec8891283c056d323f6bd398a831 Mon Sep 17 00:00:00 2001 From: plegall Date: Thu, 8 Jan 2009 23:33:35 +0000 Subject: merge r3064 from branch 2.0 to trunk bug 912 fixed: we need an extra original_sum to pwg.images.add API method to check photo existence. Using the file_sum was a bad idea. git-svn-id: http://piwigo.org/svn/trunk@3065 68402e56-0260-453c-a942-63ccdbb3a9ee --- include/ws_functions.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include/ws_functions.inc.php') diff --git a/include/ws_functions.inc.php b/include/ws_functions.inc.php index 05517c11f..26323b736 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( -- cgit v1.2.3