fixed warnings
authorstekkel <stekkel@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Mon, 16 Sep 2002 12:11:19 +0000 (12:11 +0000)
committerstekkel <stekkel@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Mon, 16 Sep 2002 12:11:19 +0000 (12:11 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@3684 7612ce4b-ef26-0410-bec9-ea0150e637f0

plugins/squirrelspell/modules/check_me.mod
plugins/squirrelspell/modules/edit_dic.mod

index 370241f..3faa076 100644 (file)
@@ -163,13 +163,15 @@ for ($i=0; $i<sizeof($sqspell_output); $i++){
      */
     if (!$SQSPELL_EREG("\n$sqspell_word\n", $words)){
       $sqspell_symb=intval($tmparray[3])-1;
-      if (!$misses[$sqspell_word]) {
+      if (!isset($misses[$sqspell_word])) {
         $misses[$sqspell_word] = $right;
         $missed_words[$errors] = $sqspell_word;
         $errors++;
       }
-      if ($locations[$sqspell_word]){
+      if (isset($locations[$sqspell_word])){
         $locations[$sqspell_word] .= ', ';
+      } else { 
+        $locations[$sqspell_word] = '';
       }
       $locations[$sqspell_word] .= "$current_line:$sqspell_symb";
     }
index 3ef3988..7cf99e3 100644 (file)
@@ -51,7 +51,7 @@ if (!$words){
        * language we're processing, prepend the output with the
        * "header" message.
        */
-      if (!$msg) {
+      if (!isset($msg) || !$msg) {
        $msg = $pre_msg;
       }
       $msg .= "<tr bgcolor=\"$color[0]\" align=\"center\"><th>"