Fix: syntax error

This commit is contained in:
Regis Houssin 2018-03-06 19:12:18 +01:00
parent d406b28911
commit 175971bfc1
2 changed files with 2 additions and 2 deletions

View File

@ -2760,7 +2760,7 @@ class User extends CommonObject
}
else
{
$sql.= " WHERE u.entity = IN (".getEntity('user').")";
$sql.= " WHERE u.entity IN (".getEntity('user').")";
}
if ($filter) $sql.=" AND ".$filter;

View File

@ -117,7 +117,7 @@ if (! empty($conf->multicompany->enabled))
}
else
{
$sql.= " WHERE u.entity = IN (".getEntity('user').")";
$sql.= " WHERE u.entity IN (".getEntity('user').")";
}
if (!empty($socid)) $sql.= " AND u.fk_soc = ".$socid;
$sql.= $db->order("u.datec","DESC");