Forward port Album cache delete/DESTROY issue with non-existant

keys in the cache.
This commit is contained in:
Colin Kuskie 2009-01-01 16:14:36 +00:00
parent 436ca52676
commit 7d5e5eb581
2 changed files with 2 additions and 1 deletions

View file

@ -22,6 +22,7 @@
- fixed #9348: Required Upgrade Step Not Documented - 7.6.0
- fixed #8993: Gallery Image Details Overlap Image
- fixed #9380: CoolMenus template - invalid markup affecting page layouts
- fixed #9387: Asset Manager breaks navigating into a Gallery Album
7.6.7
- fixed #9263: Thingy possibleValues processing, and List type autodetection.

View file

@ -346,7 +346,7 @@ sub DESTROY {
my $self = shift;
for my $key ( qw/ _nextAlbum _prevAlbum / ) {
my $asset = delete $self->{ $key };
$asset->DESTROY;
$asset->DESTROY if $asset;
}
}