diff --git a/scripts/ZoneMinder/lib/ZoneMinder/Event.pm b/scripts/ZoneMinder/lib/ZoneMinder/Event.pm index fc19eb7d9..b5a89e601 100644 --- a/scripts/ZoneMinder/lib/ZoneMinder/Event.pm +++ b/scripts/ZoneMinder/lib/ZoneMinder/Event.pm @@ -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.");