]> git.wh0rd.org - tt-rss.git/blobdiff - plugins/af_sort_bayes/init.php
bayes: properly reset score when going good -> ugly
[tt-rss.git] / plugins / af_sort_bayes / init.php
index 7e34ceac453ce0822a48f9acc2ad6d80d6d6b841..51a6f38bba3ff308899db7e7d6f9a3e5b17006e7 100644 (file)
@@ -79,14 +79,14 @@ class Af_Sort_Bayes extends Plugin {
                                switch ($current_category) {
                                        case "UGLY":
                                                $dst_category = "BAD";
-                                               $score = -$this->score_modifier;
+                                               $score = $this->score_modifier;
                                                break;
                                        case "BAD":
                                                $dst_category = "BAD";
                                                break;
                                        case "GOOD":
                                                $dst_category = "UGLY";
-                                               $score = -$this->score_modifier;
+                                               $score = 0;
                                                break;
                                }
                        }