|
@@ -21,6 +21,8 @@
|
|
|
|
|
|
|
|
|
|
// Erase any lingering attachments
|
|
// Erase any lingering attachments
|
|
|
|
+ if (! isset($attachments))
|
|
|
|
+ $attachments = array();
|
|
foreach ($attachments as $info)
|
|
foreach ($attachments as $info)
|
|
{
|
|
{
|
|
if (file_exists($attachment_dir . $info['localfilename']))
|
|
if (file_exists($attachment_dir . $info['localfilename']))
|