From 2850d064808af4cbf99f459e57eed1c427478e3d Mon Sep 17 00:00:00 2001 From: Alan Garcia Date: Thu, 13 Jun 2013 11:48:29 +0000 Subject: [PATCH] =?UTF-8?q?Erreur=20dans=20le=20d=C3=A9compte=20utilisateu?= =?UTF-8?q?r?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bureau/class/m_mysql.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bureau/class/m_mysql.php b/bureau/class/m_mysql.php index 7379d3e7..e982ac8f 100644 --- a/bureau/class/m_mysql.php +++ b/bureau/class/m_mysql.php @@ -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;