From 7d50f13ccf44b74fdea5bd26c40482dbf3d422e4 Mon Sep 17 00:00:00 2001 From: fidian Date: Tue, 10 Apr 2001 14:36:03 +0000 Subject: [PATCH] * Fixed warnings from popping up (even though they were originally there by a mistake) git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@1218 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- functions/smtp.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/functions/smtp.php b/functions/smtp.php index 0c66f44e..09a1a7e4 100644 --- a/functions/smtp.php +++ b/functions/smtp.php @@ -64,8 +64,9 @@ if (isMultipart()) { foreach ($attachments as $info) { - $filetype = $info['type']; - if ($filetype == '') + if (isset($info['type'])) + $filetype = $info['type']; + else $filetype = 'application/octet-stream'; $header = '--'.mimeBoundary()."\r\n"; -- 2.25.1