[pLog-svn] r4640 - plog/branches/lifetype-1.1.5/class/summary/dao
oscar at devel.lifetype.net
oscar at devel.lifetype.net
Wed Jan 31 09:13:35 EST 2007
Author: oscar
Date: 2007-01-31 09:13:34 -0500 (Wed, 31 Jan 2007)
New Revision: 4640
Modified:
plog/branches/lifetype-1.1.5/class/summary/dao/summarystats.class.php
Log:
Another fix for the fix regarding the "most active blogs" list (now we ignore blogs whose status is not 'active' and those that were just created)
Modified: plog/branches/lifetype-1.1.5/class/summary/dao/summarystats.class.php
===================================================================
--- plog/branches/lifetype-1.1.5/class/summary/dao/summarystats.class.php 2007-01-30 23:32:24 UTC (rev 4639)
+++ plog/branches/lifetype-1.1.5/class/summary/dao/summarystats.class.php 2007-01-31 14:13:34 UTC (rev 4640)
@@ -182,6 +182,8 @@
$query = "SELECT id, num_posts, last_update_date FROM {$prefix}blogs
WHERE show_in_summary = '1'
AND last_update_date >= ".$this->_startTime." AND last_update_date <= ".$this->_now."
+ AND status = ".BLOG_STATUS_ACTIVE." AND
+ last_update_date > create_date
ORDER BY last_update_date DESC, num_posts DESC";
if( $maxBlogs > 0 )
More information about the pLog-svn
mailing list