Fixed error when a user havent profiles and is acl strict. Ticket #3555

This commit is contained in:
Arturo Gonzalez 2016-05-25 16:04:06 +02:00
parent 35f937a630
commit 921a79bd30
1 changed files with 8 additions and 2 deletions

View File

@ -313,10 +313,16 @@ function tactical_get_data ($id_user = false, $user_strict = false, $acltags, $r
else {
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 = '';
}
$result_list = db_get_all_rows_sql("SELECT COUNT(*) as contado, estado
FROM tagente_estado tae INNER JOIN tagente ta