mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-27 15:54:29 +02:00
Fix sql error when user has no profile
This commit is contained in:
parent
601cd1cba4
commit
6ac7488ca4
@ -1267,11 +1267,16 @@ $session_time .= html_print_input_text(
|
|||||||
|
|
||||||
$user_groups = implode(',', array_keys((users_get_groups($id, 'AR', $display_all_group))));
|
$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 (empty($user_groups) === false) {
|
||||||
if ($event_filter_data === 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_data = [];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
$event_filter = [];
|
$event_filter = [];
|
||||||
$event_filter[0] = __('None');
|
$event_filter[0] = __('None');
|
||||||
foreach ($event_filter_data as $filter) {
|
foreach ($event_filter_data as $filter) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user