From: Michael M Slusarz Date: Wed, 17 Dec 2008 05:19:00 +0000 (-0700) Subject: Use default name if none exists. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=d5c700ee32a9b9522d5931be9dd3212e8a20385f;p=horde.git Use default name if none exists. --- diff --git a/imp/view.php b/imp/view.php index 9e3db8803..13f847953 100644 --- a/imp/view.php +++ b/imp/view.php @@ -91,7 +91,11 @@ case 'download_all': $tosave = array(); foreach (unserialize(Util::getFormData('download_ids')) as $val) { $mime = $contents->getMIMEPart($val); - $tosave[] = array('data' => $mime->getContents(), 'name' => $mime->getName(true)); + $name = $mime->getName(true); + if (!$name) { + $name = sprintf(_("part %s"), $val); + } + $tosave[] = array('data' => $mime->getContents(), 'name' => $name); } $horde_compress = &Horde_Compress::singleton('zip');