Handle 0 value for StorageId

This commit is contained in:
Isaac Connor 2019-09-10 17:20:18 -04:00
parent 097ce5e778
commit 30687de918
1 changed files with 1 additions and 1 deletions

View File

@ -134,7 +134,7 @@ sub Path {
if ( ! $$event{Path} ) {
my $Storage = $event->Storage();
if ( defined $Storage->Id() ) {
if ( (!$$event{StorageId}) or defined $Storage->Id() ) {
$$event{Path} = join('/', $Storage->Path(), $event->RelativePath());
} else {
Error("Storage area for $$event{StorageId} no longer exists in db.");