From 497c30d994c83c410f37cfed5a190655b5c41b02 Mon Sep 17 00:00:00 2001
From: Laurent Destailleur <eldy@destailleur.fr>
Date: Sat, 5 Dec 2015 19:38:45 +0100
Subject: [PATCH] NEW Add thumb of users into thumbs stats on home page

---
 htdocs/index.php                 | 2 +-
 htdocs/user/class/user.class.php | 1 +
 htdocs/user/index.php            | 2 +-
 3 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/htdocs/index.php b/htdocs/index.php
index c932aad6234..94445337720 100644
--- a/htdocs/index.php
+++ b/htdocs/index.php
@@ -238,7 +238,7 @@ if (empty($user->societe_id))
 					  "ExpenseReports");
 	    // Dashboard Link lines
 	    $links=array(
-	        DOL_URL_ROOT.'/user/list.php',
+	        DOL_URL_ROOT.'/user/index.php',
     	    DOL_URL_ROOT.'/societe/list.php?type=c',
     	    DOL_URL_ROOT.'/societe/list.php?type=p',
     	    DOL_URL_ROOT.'/societe/list.php?type=f',
diff --git a/htdocs/user/class/user.class.php b/htdocs/user/class/user.class.php
index 27c2a7d63ce..955753a73a3 100644
--- a/htdocs/user/class/user.class.php
+++ b/htdocs/user/class/user.class.php
@@ -2594,6 +2594,7 @@ class User extends CommonObject
         $sql = "SELECT count(u.rowid) as nb";
         $sql.= " FROM ".MAIN_DB_PREFIX."user as u";
         $sql.= " WHERE u.statut > 0";
+        //$sql.= " AND employee != 0";
         $sql.= " AND u.entity IN (".getEntity('user', 1).")";
 
         $resql=$this->db->query($sql);
diff --git a/htdocs/user/index.php b/htdocs/user/index.php
index ce597483d76..c4e769d6ffd 100644
--- a/htdocs/user/index.php
+++ b/htdocs/user/index.php
@@ -191,7 +191,7 @@ else
 {
 	$sql.= " WHERE u.entity IN (".getEntity('user',1).")";
 }
-if ($mode = "employee") $sql.= " AND u.employee = 1";
+if ($mode == "employee") $sql.= " AND u.employee = 1";
 if ($socid > 0) $sql.= " AND u.fk_soc = ".$socid;
 //if ($search_user != '')       $sql.=natural_search(array('u.login', 'u.lastname', 'u.firstname'), $search_user);
 if ($search_supervisor > 0)   $sql.= " AND u.fk_user = ".$search_supervisor;
-- 
GitLab