Fix undefined value.
authorMichael M Slusarz <slusarz@curecanti.org>
Fri, 31 Jul 2009 17:15:52 +0000 (11:15 -0600)
committerMichael M Slusarz <slusarz@curecanti.org>
Fri, 31 Jul 2009 21:02:10 +0000 (15:02 -0600)
imp/templates/chunks/message.php

index e66008f..c2f25bc 100644 (file)
@@ -81,7 +81,7 @@ function _createDAfmsg($text, $image, $id, $class = '', $show_text = true)
         <tr id="msgAtc">
          <td class="label"><?php if ($show_msg_result['atc_list']): ?><span class="iconImg attachmentImg attachmentImage"></span><a id="partlist_toggle"><span id="partlist_col" class="iconImg"></span><span id="partlist_exp" class="iconImg" style="display:none"></span></a><?php else: ?><span class="iconImg attachmentImg attachmentImage"></span><?php endif; ?></td>
          <td>
-          <span class="atcLabel"><?php echo $show_msg_result['atc_label'] ?></span><?php echo $show_msg_result['atc_download'] ?>
+          <span class="atcLabel"><?php echo $show_msg_result['atc_label'] ?></span><?php echo isset($show_msg_result['atc_download']) ? $show_msg_result['atc_download'] : '' ?>
 <?php if (isset($show_msg_result['atc_list'])): ?>
           <div id="partlist" style="display:none">
            <table cellspacing="2">