From fef2bcdc784839097a01a96a171fd83050d4c771 Mon Sep 17 00:00:00 2001 From: Doug Bell Date: Wed, 29 Oct 2008 17:06:54 +0000 Subject: [PATCH] fixed bad hashref slice --- lib/WebGUI/Asset/Wobject/GalleryAlbum.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/WebGUI/Asset/Wobject/GalleryAlbum.pm b/lib/WebGUI/Asset/Wobject/GalleryAlbum.pm index f9508d9c1..f518da632 100644 --- a/lib/WebGUI/Asset/Wobject/GalleryAlbum.pm +++ b/lib/WebGUI/Asset/Wobject/GalleryAlbum.pm @@ -344,7 +344,8 @@ Destroy the cached assets sub DESTROY { my $self = shift; - for my $asset ( delete $self->{ qw/ _nextAlbum _prevAlbum / } ) { + for my $key ( qw/ _nextAlbum _prevAlbum / ) { + my $asset = delete $self->{ $key }; $asset->DESTROY; } }