mirror of
https://github.com/Terranom674/Piwigo_Bratonien_Tools.git
synced 2026-11-05 22:22:25 +00:00
Treat source index as current only after both stages
This commit is contained in:
1 parent
813c3d36a8
commit
9f80c4aa97
1 file changed
+5
-1
@@ -117,7 +117,11 @@ function bratonien_tools_webdav_source_index_metadata(array $source, $image_id)
|
|||||||
|
|
||||||
function bratonien_tools_webdav_source_index_is_current(array $entry, $signature)
|
function bratonien_tools_webdav_source_index_is_current(array $entry, $signature)
|
||||||
{
|
{
|
||||||
return isset($entry['source_signature']) && hash_equals((string)$entry['source_signature'], (string)$signature);
|
$signature = (string)$signature;
|
||||||
|
return isset($entry['source_signature'], $entry['stage1_signature'], $entry['stage2_signature'])
|
||||||
|
&& hash_equals((string)$entry['source_signature'], $signature)
|
||||||
|
&& hash_equals((string)$entry['stage1_signature'], $signature)
|
||||||
|
&& hash_equals((string)$entry['stage2_signature'], $signature);
|
||||||
}
|
}
|
||||||
|
|
||||||
function bratonien_tools_webdav_source_index_prune(array &$index, array $current_keys)
|
function bratonien_tools_webdav_source_index_prune(array &$index, array $current_keys)
|
||||||
|
|||||||
Reference in new issue
Block a user