diff --git a/pandora_console/include/functions_api.php b/pandora_console/include/functions_api.php index dfcbe9cb3f..80c538cb57 100644 --- a/pandora_console/include/functions_api.php +++ b/pandora_console/include/functions_api.php @@ -16733,7 +16733,7 @@ function api_get_group_id_by_name($thrash1, $thrash2, $other, $thrash3) return; } - if (is_array($other) === true) { + if (is_array($other['data']) === true) { $group_id = $other['data'][0]; } else { $group_id = $other['data'];