mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
Update usergroups.lib.php
This commit is contained in:
parent
cd727f22a6
commit
f15725ee33
|
|
@ -199,8 +199,8 @@ function user_prepare_head(User $object)
|
|||
} else {
|
||||
$sql = "SELECT COUNT(ac.id) as nb";
|
||||
$sql .= " FROM ".MAIN_DB_PREFIX."actioncomm as ac";
|
||||
$sql .= " WHERE fk_user_action = ".((int) $object->id);
|
||||
$sql .= " AND entity IN (".getEntity('agenda').")";
|
||||
$sql .= " WHERE ac.fk_user_action = ".((int) $object->id);
|
||||
$sql .= " AND ac.entity IN (".getEntity('agenda').")";
|
||||
$resql = $db->query($sql);
|
||||
if ($resql) {
|
||||
$obj = $db->fetch_object($resql);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user