From b59b948bc17f4de0222f25d2f1e8f12136abc5fb Mon Sep 17 00:00:00 2001 From: JT Smith Date: Wed, 17 Jan 2007 17:05:59 +0000 Subject: [PATCH] more formatting --- lib/WebGUI/Asset/Wobject/Collaboration.pm | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) diff --git a/lib/WebGUI/Asset/Wobject/Collaboration.pm b/lib/WebGUI/Asset/Wobject/Collaboration.pm index effbec41c..47246faad 100644 --- a/lib/WebGUI/Asset/Wobject/Collaboration.pm +++ b/lib/WebGUI/Asset/Wobject/Collaboration.pm @@ -687,13 +687,21 @@ SQL attachmentLoop => do { if ($post->get('storageId')) { my $storage = $post->getStorageLocation; - [map { - ({ 'attachment.url' => $storage->getUrl($_), - 'attachment.path' => $storage->getPath($_), - 'attachment.length' => $storage->getFileSize($_) }) - } @{$storage->getFiles}] - } else { undef } - } + #returns this + [ + map { + ({ + 'attachment.url' => $storage->getUrl($_), + 'attachment.path' => $storage->getPath($_), + 'attachment.length' => $storage->getFileSize($_) + }) + } @{$storage->getFiles} + ] + } + else { + [] + } + } }) } @postIds; }