tiny bugfix for remote images in story

This commit is contained in:
Paul Driver 2011-04-07 09:48:03 -05:00
parent c515e65bed
commit f06db47a02

View file

@ -461,7 +461,7 @@ sub getEditForm {
foreach my $photoIndex (1..$numberOfPhotos) {
my $photo = $photoData->[$photoIndex-1];
my $storage = WebGUI::Storage->get($session, $photo->{storageId});
my $filename = $storage->getFiles->[0];
my $filename = $storage && $storage->getFiles->[0];
push @{ $var->{ photo_form_loop } }, {
hasPhoto => $filename ? 1 : 0,
imgThumb => $filename ? $storage->getThumbnailUrl($filename) : '',