Update holiday.class.php

This commit is contained in:
Laurent Destailleur 2020-02-05 13:25:51 +01:00 committed by GitHub
parent e74e63941d
commit d35994e5db
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1656,9 +1656,12 @@ class Holiday extends CommonObject
{
if ($type)
{
// Si utilisateur de Dolibarr
$sql = "SELECT DISTINCT u.rowid";
// If user of Dolibarr
$sql = "SELECT";
if (! empty($conf->multicompany->enabled) && ! empty($conf->global->MULTICOMPANY_TRANSVERSE_MODE)) {
$sql .= " DISTINCT";
}
$sql.= " u.rowid";
$sql.= " FROM ".MAIN_DB_PREFIX."user as u";
if (! empty($conf->multicompany->enabled) && ! empty($conf->global->MULTICOMPANY_TRANSVERSE_MODE))