浏览代码

fix bug in display with no name

lbergman 24 年之前
父节点
当前提交
6f1c28dd89
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/options_highlight.php

+ 2 - 2
src/options_highlight.php

@@ -78,7 +78,7 @@
          echo "<nobr><small>[<a href=\"options_highlight.php?action=edit&theid=$i\">" . _("Edit") . "</a>]&nbsp;[<a href=\"options_highlight.php?action=delete&theid=$i\">"._("Delete")."</a>]</small></nobr>\n";
          echo '   </td>';
          echo '   <td bgcolor="' . $message_highlight_list[$i]['color'] . "\">\n";
-         echo '      ' . $message_highlight_list[$i]['name'];
+         echo '      ' . $message_highlight_list[$i]['name'] . '&nbsp';
          echo "   </td>\n";
          echo '   <td bgcolor="' . $message_highlight_list[$i]['color'] . "\">\n";
          echo '      '.$message_highlight_list[$i]['match_type'].' = ' . $message_highlight_list[$i]['value'];
@@ -141,7 +141,7 @@
       if (isset($message_highlight_list[$theid]['name']))
           $disp = $message_highlight_list[$theid]['name'];
       else
-          $disp = '';
+          $disp = '&nbsp;';
       $disp = str_replace('\\\\', '\\', $disp);
       $disp = str_replace('\\"', '"', $disp);
       $disp = str_replace('"', '&quot;', $disp);