1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-21 10:11:28 +00:00

switch to three different bayes categories

This commit is contained in:
Andrew Dolgov
2015-06-17 18:53:53 +03:00
parent 3dcd00e4c4
commit 08cfcba417
2 changed files with 70 additions and 17 deletions

View File

@@ -84,6 +84,17 @@
return false;
}
function getCategoryById($category_id) {
$rs = $this->con->query("SELECT category FROM ttrss_plugin_af_sort_bayes_categories WHERE id = '" .
(int)$category_id . "' AND owner_uid = " . $this->owner_uid);
if ($this->con->num_rows($rs) != 0) {
return $this->con->fetch_result($rs, 0, "category");
}
return false;
}
/** see if the word is an already learnt word.
@return bool
@param string word