Fix unknown variable notice
[squirrelmail.git] / src / read_body.php
index a814cd6ca2c94e72450b73177af31d5eab3d08b1..17e19fb3a5c383e3ce9be0ab14e73c766c85cf06 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']) &&