Fixes about PHP Warnings (more or less as the develop branch)
This commit is contained in:
parent
a3b4f6b5f2
commit
c658e83ec6
|
@ -53,6 +53,7 @@ config_check();
|
||||||
</td>
|
</td>
|
||||||
<td style="min-width:200px;">
|
<td style="min-width:200px;">
|
||||||
<?php
|
<?php
|
||||||
|
$table = new stdClass();
|
||||||
$table->id = "header_table";
|
$table->id = "header_table";
|
||||||
$table->class = "none";
|
$table->class = "none";
|
||||||
$table->cellpadding = 0;
|
$table->cellpadding = 0;
|
||||||
|
|
|
@ -49,6 +49,7 @@ if (tags_has_user_acl_tags()) {
|
||||||
// Overview Table
|
// Overview Table
|
||||||
///////////////
|
///////////////
|
||||||
|
|
||||||
|
$table = new stdClass();
|
||||||
$table->class = "databox";
|
$table->class = "databox";
|
||||||
$table->cellpadding = 4;
|
$table->cellpadding = 4;
|
||||||
$table->cellspacing = 4;
|
$table->cellspacing = 4;
|
||||||
|
@ -148,6 +149,7 @@ if (tags_has_user_acl_tags()) {
|
||||||
// Show last activity from this user
|
// Show last activity from this user
|
||||||
echo '<div id="activity">';
|
echo '<div id="activity">';
|
||||||
|
|
||||||
|
$table = new stdClass();
|
||||||
$table->width = '100%'; //Don't specify px
|
$table->width = '100%'; //Don't specify px
|
||||||
$table->data = array ();
|
$table->data = array ();
|
||||||
$table->size = array ();
|
$table->size = array ();
|
||||||
|
|
|
@ -41,6 +41,7 @@ switch ($action) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$table = new stdClass();
|
||||||
$table->width = '98%';
|
$table->width = '98%';
|
||||||
$table->id = 'add_alert_table';
|
$table->id = 'add_alert_table';
|
||||||
$table->class = 'databox';
|
$table->class = 'databox';
|
||||||
|
|
|
@ -366,6 +366,7 @@ switch ($action) {
|
||||||
$search_name = "%$search%' OR description LIKE '%$search%";
|
$search_name = "%$search%' OR description LIKE '%$search%";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$table_aux = new stdClass();
|
||||||
$table_aux->width = '99%';
|
$table_aux->width = '99%';
|
||||||
$table_aux->colspan[0][0] = 4;
|
$table_aux->colspan[0][0] = 4;
|
||||||
$table_aux->data[0][0] = "<b>". __("Group") . "</b>";
|
$table_aux->data[0][0] = "<b>". __("Group") . "</b>";
|
||||||
|
@ -440,6 +441,7 @@ switch ($action) {
|
||||||
'id_group',
|
'id_group',
|
||||||
'non_interactive'), $return_all_group, 'RR', $group);
|
'non_interactive'), $return_all_group, 'RR', $group);
|
||||||
|
|
||||||
|
$table = new stdClass();
|
||||||
$table->width = '0px';
|
$table->width = '0px';
|
||||||
if (sizeof ($reports)) {
|
if (sizeof ($reports)) {
|
||||||
$table->id = 'report_list';
|
$table->id = 'report_list';
|
||||||
|
|
|
@ -4055,6 +4055,7 @@ function reporting_render_report_html_item ($content, $table, $report, $mini = f
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
elseif ($show_table) {
|
elseif ($show_table) {
|
||||||
|
$table1 = new stdClass();
|
||||||
$table1->width = '99%';
|
$table1->width = '99%';
|
||||||
$table1->data = array ();
|
$table1->data = array ();
|
||||||
$table1->head = array ();
|
$table1->head = array ();
|
||||||
|
@ -4412,6 +4413,7 @@ function reporting_render_report_html_item ($content, $table, $report, $mini = f
|
||||||
|
|
||||||
// Slice graphs calculation
|
// Slice graphs calculation
|
||||||
if ($show_graphs && !empty($slas)) {
|
if ($show_graphs && !empty($slas)) {
|
||||||
|
$tableslice = new stdClass();
|
||||||
$tableslice->width = '99%';
|
$tableslice->width = '99%';
|
||||||
$tableslice->style[0] = 'text-align: right';
|
$tableslice->style[0] = 'text-align: right';
|
||||||
$tableslice->data = array ();
|
$tableslice->data = array ();
|
||||||
|
|
|
@ -109,7 +109,8 @@ function users_get_groups_for_select($id_user, $privilege = "AR", $returnAllGro
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
// First group it's needed to retrieve its parent group
|
// First group it's needed to retrieve its parent group
|
||||||
$first_group = reset(array_slice($user_groups, 0, 1));
|
$array_slice_user_groups = array_slice($user_groups, 0, 1);
|
||||||
|
$first_group = reset($array_slice_user_groups);
|
||||||
$parent_group = $first_group['parent'];
|
$parent_group = $first_group['parent'];
|
||||||
|
|
||||||
$user_groups_tree = groups_get_groups_tree_recursive($user_groups, $parent_group);
|
$user_groups_tree = groups_get_groups_tree_recursive($user_groups, $parent_group);
|
||||||
|
|
|
@ -124,6 +124,7 @@ if ($enable_init_date) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$table = new stdClass();
|
||||||
$table->id = 'controls_table';
|
$table->id = 'controls_table';
|
||||||
$table->width = '99%';
|
$table->width = '99%';
|
||||||
$table->class = 'databox';
|
$table->class = 'databox';
|
||||||
|
|
Loading…
Reference in New Issue