fix author counting without drafted articles
This commit is contained in:
@ -3,6 +3,9 @@
|
||||
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_
|
||||
printSidebar} (garvinhicking)
|
||||
|
||||
|
@ -370,7 +370,7 @@ function serendipity_fetchUsers($user = '', $group = null, $is_count = false) {
|
||||
if ($is_count) {
|
||||
$query_select = ", count(e.authorid) as artcount";
|
||||
$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) {
|
||||
|
Reference in New Issue
Block a user