Fixes about PHP Warnings (more or less as the develop branch)

This commit is contained in:
mdtrooper 2015-06-08 15:09:53 +02:00
parent a3b4f6b5f2
commit c658e83ec6
7 changed files with 11 additions and 1 deletions

1
pandora_console/general/header.php Normal file → Executable file
View File

@ -53,6 +53,7 @@ config_check();
</td>
<td style="min-width:200px;">
<?php
$table = new stdClass();
$table->id = "header_table";
$table->class = "none";
$table->cellpadding = 0;

2
pandora_console/general/logon_ok.php Normal file → Executable file
View File

@ -49,6 +49,7 @@ if (tags_has_user_acl_tags()) {
// Overview Table
///////////////
$table = new stdClass();
$table->class = "databox";
$table->cellpadding = 4;
$table->cellspacing = 4;
@ -148,6 +149,7 @@ if (tags_has_user_acl_tags()) {
// Show last activity from this user
echo '<div id="activity">';
$table = new stdClass();
$table->width = '100%'; //Don't specify px
$table->data = array ();
$table->size = array ();

View File

@ -41,6 +41,7 @@ switch ($action) {
break;
}
$table = new stdClass();
$table->width = '98%';
$table->id = 'add_alert_table';
$table->class = 'databox';

View File

@ -366,6 +366,7 @@ switch ($action) {
$search_name = "%$search%' OR description LIKE '%$search%";
}
$table_aux = new stdClass();
$table_aux->width = '99%';
$table_aux->colspan[0][0] = 4;
$table_aux->data[0][0] = "<b>". __("Group") . "</b>";
@ -440,6 +441,7 @@ switch ($action) {
'id_group',
'non_interactive'), $return_all_group, 'RR', $group);
$table = new stdClass();
$table->width = '0px';
if (sizeof ($reports)) {
$table->id = 'report_list';

2
pandora_console/include/functions_reporting.php Normal file → Executable file
View File

@ -4055,6 +4055,7 @@ function reporting_render_report_html_item ($content, $table, $report, $mini = f
break;
}
elseif ($show_table) {
$table1 = new stdClass();
$table1->width = '99%';
$table1->data = array ();
$table1->head = array ();
@ -4412,6 +4413,7 @@ function reporting_render_report_html_item ($content, $table, $report, $mini = f
// Slice graphs calculation
if ($show_graphs && !empty($slas)) {
$tableslice = new stdClass();
$tableslice->width = '99%';
$tableslice->style[0] = 'text-align: right';
$tableslice->data = array ();

3
pandora_console/include/functions_users.php Normal file → Executable file
View File

@ -109,7 +109,8 @@ function users_get_groups_for_select($id_user, $privilege = "AR", $returnAllGro
}
else {
// 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'];
$user_groups_tree = groups_get_groups_tree_recursive($user_groups, $parent_group);

View File

@ -124,6 +124,7 @@ if ($enable_init_date) {
}
}
$table = new stdClass();
$table->id = 'controls_table';
$table->width = '99%';
$table->class = 'databox';