fixing timewithin login

This commit is contained in:
toyomoyo
2007-08-31 02:06:24 +00:00
parent 14237364b0
commit 84895c5321
+1 -1
View File
@@ -72,7 +72,7 @@ class block_blog_tags extends block_base {
/// Get a list of tags
$timewithin = $this->config->timewithin * 24 * 60 * 60; /// convert to seconds
$timewithin = time() - $this->config->timewithin * 24 * 60 * 60; /// convert to seconds
$sql = 'SELECT t.id, t.tagtype, t.rawname as name, COUNT(DISTINCT ti.id) as ct ';
$sql .= "FROM {$CFG->prefix}tag t, {$CFG->prefix}tag_instance ti, {$CFG->prefix}post p ";