diff --git a/pandora_console/include/functions_html.php b/pandora_console/include/functions_html.php
index 01adc2402d..134bd1aee5 100644
--- a/pandora_console/include/functions_html.php
+++ b/pandora_console/include/functions_html.php
@@ -462,9 +462,20 @@ function html_print_select_groups(
$size=false,
$simple_multiple_options=false
) {
- global $config;
- ui_require_css_file('select2.min');
- ui_require_javascript_file('select2.min');
+ $output = '';
+
+ if (is_ajax()) {
+ $output .= '';
+
+ $output .= '';
+ } else {
+ ui_require_css_file('select2.min');
+ ui_require_javascript_file('select2.min');
+ }
if ($name === null) {
static $idcounter = [];
@@ -499,7 +510,7 @@ function html_print_select_groups(
$json_inclusions = json_encode($include_groups);
}
- $output = html_print_select(
+ $output .= html_print_select(
$fields,
$name,
$selected,
diff --git a/pandora_console/include/lib/View.php b/pandora_console/include/lib/View.php
index 6376edfb38..becb9ba063 100644
--- a/pandora_console/include/lib/View.php
+++ b/pandora_console/include/lib/View.php
@@ -53,8 +53,6 @@ class View
{
global $config;
- ob_start('ui_process_page_head');
-
if (is_array($data) === true) {
extract($data);
}
@@ -69,12 +67,6 @@ class View
} else {
ui_print_error_message(__('View %s not found', $page), true);
}
-
- while (@ob_end_flush()) {
- // Dumping...
- continue;
- }
-
}