Browse Source

fix bug in display with no name

lbergman 24 years ago
parent
commit
6f1c28dd89
1 changed files with 2 additions and 2 deletions
  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);