Fix unknown variable notice
authorpdontthink <pdontthink@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Thu, 30 Aug 2007 21:51:29 +0000 (21:51 +0000)
committerpdontthink <pdontthink@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Thu, 30 Aug 2007 21:51:29 +0000 (21:51 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@12642 7612ce4b-ef26-0410-bec9-ea0150e637f0

src/read_body.php

index a814cd6..17e19fb 100644 (file)
@@ -376,6 +376,10 @@ function formatEnvheader($aMailbox, $passed_id, $passed_ent_id, $message,
         $oTemplate->assign('xmailer', decodeHeader($header->xmailer));
         $env[_("Mailer")] = $oTemplate->fetch('read_xmailer.tpl');
     }
+
+    // this is used for both mdn and also general use for plugins, etc
+    $oTemplate->assign('first_time_reading', $FirstTimeSee);
+
     if ($default_use_mdn) {
         if ($mdn_user_support) {
             if ($header->dnt) {
@@ -393,9 +397,6 @@ function formatEnvheader($aMailbox, $passed_id, $passed_ent_id, $message,
         }
     }
 
-    // this is used for both mdn and also general use for plugins, etc
-    $oTemplate->assign('first_time_reading', $FirstTimeSee);
-
     $statuses = array();
     if (isset($aMailbox['MSG_HEADERS'][$passed_id]['FLAGS'])) {
         if (isset($aMailbox['MSG_HEADERS'][$passed_id]['FLAGS']['\\deleted']) &&