From b469a195258162a8beadc5a778529aa08a998519 Mon Sep 17 00:00:00 2001
From: thomascube <thomas@roundcube.net>
Date: Mon, 18 Aug 2008 08:47:43 -0400
Subject: [PATCH] Prevent from including empty template

---
 program/steps/mail/show.inc |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/program/steps/mail/show.inc b/program/steps/mail/show.inc
index 4256458..b0dcf38 100644
--- a/program/steps/mail/show.inc
+++ b/program/steps/mail/show.inc
@@ -35,7 +35,7 @@
     if ($RCMAIL->action=='preview' && $OUTPUT->template_exists('messagepreview'))
         $OUTPUT->send('messagepreview');
     else {
-      $RCMAIL->action = 'list';
+      rcmail_overwrite_action('');
       return;
     }
   }

--
Gitblit v1.9.1