mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-04-08 18:55:09 +02:00
Merge branch 'ent-8699-error-sql-al-crear-usuario-sin-perfil' into 'develop'
Fix sql error when user has no profile See merge request artica/pandorafms!4757
This commit is contained in:
commit
0ca61eff7a
@ -1267,11 +1267,16 @@ $session_time .= html_print_input_text(
|
||||
|
||||
$user_groups = implode(',', array_keys((users_get_groups($id, 'AR', $display_all_group))));
|
||||
|
||||
$event_filter_data = db_get_all_rows_sql('SELECT id_name, id_filter FROM tevent_filter WHERE id_group_filter IN ('.$user_groups.')');
|
||||
if ($event_filter_data === false) {
|
||||
if (empty($user_groups) === false) {
|
||||
$event_filter_data = db_get_all_rows_sql('SELECT id_name, id_filter FROM tevent_filter WHERE id_group_filter IN ('.$user_groups.')');
|
||||
if ($event_filter_data === false) {
|
||||
$event_filter_data = [];
|
||||
}
|
||||
} else {
|
||||
$event_filter_data = [];
|
||||
}
|
||||
|
||||
|
||||
$event_filter = [];
|
||||
$event_filter[0] = __('None');
|
||||
foreach ($event_filter_data as $filter) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user