Browse Source

Do not include anonymous in user counts.

Frederic G. MARAND 13 years ago
parent
commit
edeee3f572
1 changed files with 2 additions and 1 deletions
  1. 2 1
      modules/munin_core/munin_core.module

+ 2 - 1
modules/munin_core/munin_core.module

@@ -105,8 +105,9 @@ function munin_core_munin_api_info() {
 function munin_core_munin_api_fetch($graph_name) {
   switch ($graph_name) {
     case 'munin_core':
-      $sq = 'SELECT COUNT(u.uid) cnt, u.status FROM {users} u GROUP BY 2';
+      $sq = 'SELECT COUNT(u.uid) cnt, u.status FROM {users} u WHERE u.uid != 0 GROUP BY 2';
       $result = db_query($sq);
+      $users = array(0 => 0, 1 => 0);
       while ($row = db_fetch_object($result)) {
         $users[$row->status] = $row->cnt;
       }