]> git.mjollnir.org Git - s9y.git/commitdiff
fix author counting without drafted articles
authorgarvinhicking <garvinhicking>
Sun, 24 Feb 2008 11:06:32 +0000 (11:06 +0000)
committergarvinhicking <garvinhicking>
Sun, 24 Feb 2008 11:06:32 +0000 (11:06 +0000)
docs/NEWS
include/functions.inc.php

index 22f2d8e4361e790a33472915ea821bd08c7c1e02..96ef33f24d253282c9c63d5e42697393853f0079 100644 (file)
--- a/docs/NEWS
+++ b/docs/NEWS
@@ -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)
 
index 4571b40d6528db6c394bea351b7548975d3bb146..1aac3b9754e72790ac98d6af3202d36108c1e970 100644 (file)
@@ -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) {