Fixed removing SPAM filter preferences and added ability to hide commercial SPAM...
[squirrelmail.git] / plugins / filters / spamoptions.php
index 8ad5bc5..b0a179e 100644 (file)
@@ -43,6 +43,8 @@ if (isset($spam_submit)) {
         if ( isset( $$input ) ) {
             setPref( $data_dir, $username, $spam_filters[$Key]['prefname'],
                      $$input);
+        } else {
+            removePref($data_dir, $username, $spam_filters[$Key]['prefname']);
         }
     }
 }
@@ -189,4 +191,4 @@ if (! isset($action) || $action != 'spam') {
     echo '</table>';
 }
 
-?>
\ No newline at end of file
+?>