Browse Source

[svn r21263] http://www.dokeos.com/forum/viewtopic.php?p=44641
Admin Statistics on #of users with/without picture was wrong

Jan Derriks 16 years ago
parent
commit
46159f5f57
1 changed files with 2 additions and 2 deletions
  1. 2 2
      main/admin/statistics/statistics.lib.php

+ 2 - 2
main/admin/statistics/statistics.lib.php

@@ -270,8 +270,8 @@ class Statistics
 		$sql = "SELECT COUNT(*) AS n FROM $user_table WHERE LENGTH(picture_uri) > 0";
 		$res = api_sql_query($sql,__FILE__,__LINE__);
 		$count2 = mysql_fetch_object($res);
-		$result[get_lang('No')] = $count1->n;
-		$result[get_lang('Yes')] = $count2->n;
+		$result[get_lang('No')] = $count1->n - $count2->n; // #users without picture
+		$result[get_lang('Yes')] = $count2->n; // #users with picture
 		Statistics::print_stats(get_lang('CountUsers').' ('.get_lang('UserPicture').')',$result,true);
 	}
 	/**