mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-31 01:35:36 +02:00
#11705 fix for id as array
This commit is contained in:
parent
6db13cc55a
commit
63b069d739
@ -6245,7 +6245,10 @@ function events_event_custom_id(
|
|||||||
global $config;
|
global $config;
|
||||||
// Cleans up the selection for all unwanted values also casts any single
|
// Cleans up the selection for all unwanted values also casts any single
|
||||||
// values as an array.
|
// values as an array.
|
||||||
$id_event = (array) safe_int($id_event, 1);
|
if (![$id_event]) {
|
||||||
|
$id_event = (array) safe_int($id_event, 1);
|
||||||
|
}
|
||||||
|
|
||||||
// Check ACL.
|
// Check ACL.
|
||||||
foreach ($id_event as $k => $id) {
|
foreach ($id_event as $k => $id) {
|
||||||
$event_group = events_get_group($id);
|
$event_group = events_get_group($id);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user