mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-31 01:35:36 +02:00
add condition to avoid trying to retrieve a non existing event filter when synchronizing meta and node
Former-commit-id: 83a1f9ad1c99de0e29a880de4ed6c518884bda31
This commit is contained in:
parent
bcbcd763a1
commit
a622dcc9d4
@ -232,6 +232,7 @@ if ($user_filter != 0 && empty($id_name) && !$update_from_filter_table) {
|
||||
);
|
||||
$user_default_filter = $user_default_filter[0];
|
||||
|
||||
if (!empty($user_default_filter)) {
|
||||
// FORM.
|
||||
$id_name = $user_default_filter['id_name'];
|
||||
$id_group = $user_default_filter['id_group'];
|
||||
@ -295,6 +296,7 @@ if ($user_filter != 0 && empty($id_name) && !$update_from_filter_table) {
|
||||
$tag_without_clear = io_safe_output($tag_without);
|
||||
$tag_without = json_decode($tag_without_clear, true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Build the condition of the events query.
|
||||
@ -1043,7 +1045,7 @@ $events_filter .= $botom_update;
|
||||
$events_filter .= '</form>';
|
||||
// This is the filter div.
|
||||
$user_filter = db_get_value(
|
||||
'id_filter',
|
||||
'default_event_filter',
|
||||
'tusuario',
|
||||
'id_user',
|
||||
$config['id_user']
|
||||
|
Loading…
x
Reference in New Issue
Block a user