Handle 0 value for StorageId
This commit is contained in:
parent
097ce5e778
commit
30687de918
|
@ -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.");
|
||||
|
|
Loading…
Reference in New Issue