Add test for empty storage path
This commit is contained in:
parent
3e29aa56a3
commit
9d454bdc41
|
@ -313,6 +313,11 @@ sub delete_files {
|
|||
my $Storage = new ZoneMinder::Storage( $_[0]{StorageId} );
|
||||
my $storage_path = $Storage->Path();
|
||||
|
||||
if ( ! $storage_path ) {
|
||||
Fatal("No storage path when deleting fileds for event $_[0]{Id} with storage id $_[0]{StorageId} ");
|
||||
return;
|
||||
}
|
||||
|
||||
chdir ( $storage_path );
|
||||
|
||||
if ( $Config{ZM_USE_DEEP_STORAGE} )
|
||||
|
|
Loading…
Reference in New Issue