[pLog-svn] r2956 - plog/trunk/class/dao
oscar at devel.lifetype.net
oscar at devel.lifetype.net
Thu Feb 16 17:31:00 GMT 2006
Author: oscar
Date: 2006-02-16 17:31:00 +0000 (Thu, 16 Feb 2006)
New Revision: 2956
Modified:
plog/trunk/class/dao/articles.class.php
Log:
fixed an issue with the call to Articles::buildWhere in Articles::getNumBlogArticles
Modified: plog/trunk/class/dao/articles.class.php
===================================================================
--- plog/trunk/class/dao/articles.class.php 2006-02-16 17:22:08 UTC (rev 2955)
+++ plog/trunk/class/dao/articles.class.php 2006-02-16 17:31:00 UTC (rev 2956)
@@ -277,9 +277,11 @@
{
$postStatus = $status;
$prefix = $this->getPrefix();
- $where = $this->buildWhere( $blogId, $date, $categoryId, $status, $userId, $maxDate, $searchTerms );
+ $where = $this->buildWhere( $blogId, $date, -1, $categoryId, $status, $userId, $maxDate, $searchTerms );
$query = "SELECT COUNT(*) AS total FROM {$prefix}articles a, {$prefix}articles_categories c, {$prefix}article_categories_link l WHERE $where ";
+ print($query);
+
$result = $this->_db->Execute( $query );
if( !$result )
More information about the pLog-svn
mailing list