mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-27 07:44:35 +02:00
Fixed error when a user havent profiles and is acl strict. Ticket #3555
This commit is contained in:
parent
35f937a630
commit
921a79bd30
@ -313,10 +313,16 @@ function tactical_get_data ($id_user = false, $user_strict = false, $acltags, $r
|
|||||||
else {
|
else {
|
||||||
|
|
||||||
if ($user_strict) {
|
if ($user_strict) {
|
||||||
$_tag_condition = 'AND ' . tags_get_acl_tags_module_condition($acltags,'tae');
|
if (empty($acltags)) {
|
||||||
|
$_tag_condition = '';
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
$_tag_condition = 'AND ' . tags_get_acl_tags_module_condition($acltags,'tae');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else {
|
||||||
$_tag_condition = '';
|
$_tag_condition = '';
|
||||||
|
}
|
||||||
|
|
||||||
$result_list = db_get_all_rows_sql("SELECT COUNT(*) as contado, estado
|
$result_list = db_get_all_rows_sql("SELECT COUNT(*) as contado, estado
|
||||||
FROM tagente_estado tae INNER JOIN tagente ta
|
FROM tagente_estado tae INNER JOIN tagente ta
|
||||||
|
Loading…
x
Reference in New Issue
Block a user