mirror of
https://github.com/Piwigo/Piwigo.git
synced 2025-04-26 11:19:55 +03:00
This commit is contained in:
parent
3ee277f8e0
commit
08ae0304bb
1 changed files with 8 additions and 2 deletions
|
@ -2641,8 +2641,14 @@ function ws_images_setMd5sum($params, $service)
|
|||
|
||||
include_once(PHPWG_ROOT_PATH.'admin/include/functions.php');
|
||||
|
||||
$md5sum_ids_to_add = array_slice(get_photos_no_md5sum(), 0, $params['block_size']);
|
||||
$added_count = add_md5sum($md5sum_ids_to_add);
|
||||
$nb_no_md5sum = count(get_photos_no_md5sum());
|
||||
$added_count = 0;
|
||||
|
||||
if ($nb_no_md5sum > 0)
|
||||
{
|
||||
$md5sum_ids_to_add = array_slice(get_photos_no_md5sum(), 0, $params['block_size']);
|
||||
$added_count = add_md5sum($md5sum_ids_to_add);
|
||||
}
|
||||
|
||||
return array(
|
||||
'nb_added' => $added_count,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue