Avoid warnings for empty file sha1 keys
bug: 40362 Change-Id: I19d3b38a121171153875cde8bef4ca34b3e49d67
This commit is contained in:
parent
10da99d18d
commit
113742fe99
1 changed files with 4 additions and 0 deletions
|
|
@ -39,6 +39,10 @@ class DeleteArchivedFilesImplementation {
|
|||
$count = 0;
|
||||
foreach ( $res as $row ) {
|
||||
$key = $row->fa_storage_key;
|
||||
if ( !strlen( $key ) ) {
|
||||
$output->handleOutput( "Entry with ID {$row->fa_id} has empty key, skipping\n" );
|
||||
continue;
|
||||
}
|
||||
$group = $row->fa_storage_group;
|
||||
$id = $row->fa_id;
|
||||
$path = $repo->getZonePath( 'deleted' ) . '/' . $repo->getDeletedHashPath( $key ) . $key;
|
||||
|
|
|
|||
Loading…
Reference in a new issue