Browse Source

Make sure the message was actually seen, not just that 'seen' is in aFlags

indiri69 19 năm trước cách đây
mục cha
commit
b5994483f6
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      templates/default/message_list.tpl

+ 1 - 1
templates/default/message_list.tpl

@@ -441,7 +441,7 @@ if ($class != 'even' && $class != 'odd')
     // flag style mumbo jumbo
     $sPre = $sEnd = '';
     if (isset($aColumns[SQM_COL_FLAGS])) {
-        if (!in_array('seen',$aFlags)) {
+        if (!in_array('seen',$aFlags) || !$aFlags['seen']) {
             $sPre = '<span class="unread">'; $sEnd = '</span>';
         }
         if (in_array('deleted',$aFlags) && $aFlags['deleted']) {