Update holiday.class.php
This commit is contained in:
parent
e74e63941d
commit
d35994e5db
@ -1656,9 +1656,12 @@ class Holiday extends CommonObject
|
|||||||
{
|
{
|
||||||
if ($type)
|
if ($type)
|
||||||
{
|
{
|
||||||
// Si utilisateur de Dolibarr
|
// If user of Dolibarr
|
||||||
|
$sql = "SELECT";
|
||||||
$sql = "SELECT DISTINCT u.rowid";
|
if (! empty($conf->multicompany->enabled) && ! empty($conf->global->MULTICOMPANY_TRANSVERSE_MODE)) {
|
||||||
|
$sql .= " DISTINCT";
|
||||||
|
}
|
||||||
|
$sql.= " u.rowid";
|
||||||
$sql.= " FROM ".MAIN_DB_PREFIX."user as u";
|
$sql.= " FROM ".MAIN_DB_PREFIX."user as u";
|
||||||
|
|
||||||
if (! empty($conf->multicompany->enabled) && ! empty($conf->global->MULTICOMPANY_TRANSVERSE_MODE))
|
if (! empty($conf->multicompany->enabled) && ! empty($conf->global->MULTICOMPANY_TRANSVERSE_MODE))
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user