[pLog-svn] r515 - plog/trunk/class/summary/dao
oscar at devel.plogworld.net
oscar at devel.plogworld.net
Fri Dec 17 12:22:31 GMT 2004
Author: oscar
Date: 2004-12-17 12:22:31 +0000 (Fri, 17 Dec 2004)
New Revision: 515
Modified:
plog/trunk/class/summary/dao/summarystats.class.php
Log:
fixed a bug in SummaryStats::getRecentArticles, where we had a.text and a.topic in the sql query instead of t.text and t.topic.
Modified: plog/trunk/class/summary/dao/summarystats.class.php
===================================================================
--- plog/trunk/class/summary/dao/summarystats.class.php 2004-12-17 12:13:20 UTC (rev 514)
+++ plog/trunk/class/summary/dao/summarystats.class.php 2004-12-17 12:22:31 UTC (rev 515)
@@ -349,11 +349,11 @@
// in case we'd like to ignore certain posts based on a topic (like the registration message!)
if( $ignoreTopic != "" ) {
- $query .= " AND a.topic <> '".Db::qstr( $ignoreTopic )."' ";
+ $query .= " AND t.topic <> '".Db::qstr( $ignoreTopic )."' ";
}
// in case we'd like to ignore certain posts based on their contents (like the registration message!)
if( $ignoreText != "" ) {
- $query .= " AND a.text <> '".Db::qstr( $ignoreTopic )."' ";
+ $query .= " AND t.text <> '".Db::qstr( $ignoreText )."' ";
}
$query .= " GROUP BY a.id HAVING COUNT(a.blog_id) = 1 ORDER BY a.date DESC LIMIT 0, $maxPosts";
More information about the pLog-svn
mailing list