<?php
/**
- * NP_SpamBayes(JP) ($Revision: 1.3 $)
+ * NP_SpamBayes(JP) ($Revision: 1.4 $)
* by hsur ( http://blog.cles.jp/np_cles )
- * $Id: NP_SpamBayes.php,v 1.3 2007-06-23 04:13:01 hsur Exp $
+ * $Id: NP_SpamBayes.php,v 1.4 2007-06-24 05:39:01 hsur Exp $
*
* Copyright (C) 2007 cles All rights reserved.
*/
function getName() { return 'SpamBayes(JP)'; }
function getAuthor() { return 'xiffy + hsur'; }
function getURL() { return 'http://blog.cles.jp/np_cles/category/31/subcatid/17'; }
- function getVersion() { return '1.1.0 jp1.3b'; }
+ function getVersion() { return '1.1.0 jp1.4b'; }
function getDescription() { return 'SpamBayes filter for comment and trackback spam. In adherence with Spam API 1.0 for Nucleus'; }
function supportsFeature($what) {
switch($what) {
}
function nextdocid() {
- $res = sql_query ("select ref from ".$this->table_ref." where ref > 500000000 order by ref desc limit 0,1");
+ $res = sql_query ("select ref from ".$this->table_ref." where ref >= 500000000 order by ref desc limit 0,1");
$obj = @ mysql_fetch_object($res);
if ($obj) {
return $obj->ref + 1;