1
0

fix author counting without drafted articles

This commit is contained in:
Garvin Hicking
2008-02-24 11:06:32 +00:00
parent 3a07a3e8bb
commit 82294ec204
2 changed files with 4 additions and 1 deletions

View File

@ -3,6 +3,9 @@
Version 1.3 () Version 1.3 ()
------------------------------------------------------------------------ ------------------------------------------------------------------------
* Fix sidebar plugin for the author's list to not include counting
drafted articles (garvinhicking)
* Add option "template" to smarty function call {serendipity_ * Add option "template" to smarty function call {serendipity_
printSidebar} (garvinhicking) printSidebar} (garvinhicking)

View File

@ -370,7 +370,7 @@ function serendipity_fetchUsers($user = '', $group = null, $is_count = false) {
if ($is_count) { if ($is_count) {
$query_select = ", count(e.authorid) as artcount"; $query_select = ", count(e.authorid) as artcount";
$query_join = "LEFT OUTER JOIN {$serendipity['dbPrefix']}entries AS e $query_join = "LEFT OUTER JOIN {$serendipity['dbPrefix']}entries AS e
ON a.authorid = e.authorid"; ON (a.authorid = e.authorid AND e.isdraft = 'false')";
} }
if ($is_count || $group != null) { if ($is_count || $group != null) {