[pLog-svn] r6654 - plog/branches/lifetype-1.2/class/dao
jondaley at devel.lifetype.net
jondaley at devel.lifetype.net
Mon Jun 23 13:56:40 EDT 2008
Author: jondaley
Date: 2008-06-23 13:56:40 -0400 (Mon, 23 Jun 2008)
New Revision: 6654
Modified:
plog/branches/lifetype-1.2/class/dao/searchengine.class.php
Log:
fixed todo - non-fulltext searches now return the correct number of results when using getNumResults()
Modified: plog/branches/lifetype-1.2/class/dao/searchengine.class.php
===================================================================
--- plog/branches/lifetype-1.2/class/dao/searchengine.class.php 2008-06-23 17:56:10 UTC (rev 6653)
+++ plog/branches/lifetype-1.2/class/dao/searchengine.class.php 2008-06-23 17:56:40 UTC (rev 6654)
@@ -180,10 +180,8 @@
}
}
else {
- // TODO: use $conds? It currently ignores status, etc.
-
// alternative, slower path
- $query = $this->getArticleSearchConditions( $searchTerms );
+ $query = $this->getArticleSearchConditions( $searchTerms . " {$conds} ");
$total = $this->getNumItems( "{$prefix}articles a", $query, "a.id" );
}
More information about the pLog-svn
mailing list