OSDN Git Service

*** empty log message ***
authorhsur <hsur@1ca29b6e-896d-4ea0-84a5-967f57386b96>
Sun, 24 Jun 2007 05:39:01 +0000 (05:39 +0000)
committerhsur <hsur@1ca29b6e-896d-4ea0-84a5-967f57386b96>
Sun, 24 Jun 2007 05:39:01 +0000 (05:39 +0000)
git-svn-id: https://svn.sourceforge.jp/svnroot/nucleus-jp/plugin@578 1ca29b6e-896d-4ea0-84a5-967f57386b96

trunk/NP_SpamBayes/NP_SpamBayes.php
trunk/NP_SpamBayes/spambayes/spambayes.php

index 9170244..35c0792 100644 (file)
@@ -1,9 +1,9 @@
 <?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.
 */
@@ -144,7 +144,7 @@ class NP_SpamBayes extends NucleusPlugin {
        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) {
index 57018f7..208b51a 100644 (file)
@@ -611,7 +611,7 @@ class NaiveBayesianStorage {
        }
 
        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;