bug 1138: changed rules for formatting the output of an email in the show history
authormam <m.maengel@project-biz.de>
Fri, 21 Feb 2014 06:40:44 +0000 (07:40 +0100)
committermam <m.maengel@project-biz.de>
Fri, 21 Feb 2014 06:40:44 +0000 (07:40 +0100)
includes/notary.inc.php

index 7f068bd..1f4465b 100644 (file)
@@ -1402,17 +1402,17 @@ function output_log_email_header(){
 function output_log_email($row,$primary){
        $italic='';
        $bold='';
-       if (0==$row['deleted']) {
+       if ($row['deleted'] > 0) {
                $italic='italic ';
        }
-       if ($primary==$row['email']) {
+       if ($primary==$row['email'] && $row['deleted'] == 0) {
                $bold= 'bold ';
        }
        ?>
        <tr>
-               <td class="DataTD <? $bold . $italic ?>"><?=$row['email']?></td>
-               <td class="DataTD <? $bold . $italic ?>"><?=$row['created']?></td>
-               <td class="DataTD <? $bold . $italic ?>"><?=$row['deleted']?></td>
+               <td class="DataTD<? $bold . $italic ?>"><?=$row['email']?></td>
+               <td class="DataTD<? $bold . $italic ?>"><?=$row['created']?></td>
+               <td class="DataTD<? $bold . $italic ?>"><?=$row['deleted']?></td>
        </tr>
        <?
 }