Explorar o código

Remove notice

indiri69 %!s(int64=21) %!d(string=hai) anos
pai
achega
ce51856af2
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/options_highlight.php

+ 1 - 1
src/options_highlight.php

@@ -364,7 +364,7 @@ if ($action == 'edit' || $action == 'add') {
         }
     }
 
-    if (!isset($message_highlight_list[$theid]['color']))
+    if (isset($theid) && !isset($message_highlight_list[$theid]['color']))
         $selected_choose = ' checked';
     else if ($pre_defined_color)
         $selected_predefined = ' checked';