Erreur dans le décompte utilisateur

This commit is contained in:
Alan Garcia 2013-06-13 11:48:29 +00:00
parent 0dc0ab2d43
commit 2850d06480
1 changed files with 1 additions and 1 deletions

View File

@ -94,7 +94,7 @@ class m_mysql {
function list_db_servers() {
global $db;
$db->query("select d.*, count(*) as nb_users from db_servers d left join membres m on d.id = m.db_server_id group by d.id,m.db_server_id order by d.name,d.id;");
$db->query("select d.*, IFNULL(count(m.uid),0) as nb_users from db_servers d left join membres m on d.id = m.db_server_id group by d.id,m.db_server_id order by d.name,d.id;");
$c=array();
while ($db->next_record()) {
$c[]=$db->Record;