Fixed PHP warnings.
This commit is contained in:
parent
e4d26b0bd6
commit
9bed03aefd
|
@ -213,7 +213,9 @@ $table->data[$row][1] .= __('No').' '.html_print_radio_button ('flash_chart
|
|||
$row++;
|
||||
|
||||
$table->data[$row][0] = __('Custom logo') . ui_print_help_icon("custom_logo", true);
|
||||
$table->data[$row][1] = html_print_select (list_files ('images/custom_logo', "png", 1, 0), 'custom_logo', $config["custom_logo"], '', '', '', true);
|
||||
$table->data[$row][1] = html_print_select(
|
||||
list_files('images/custom_logo', "png", 1, 0), 'custom_logo',
|
||||
$config["custom_logo"], '', '', '', true);
|
||||
|
||||
$row++;
|
||||
|
||||
|
@ -224,7 +226,9 @@ $backgrounds_list_png = list_files("images/backgrounds", "png", 1, 0);
|
|||
$backgrounds_list = array_merge($backgrounds_list_jpg, $backgrounds_list_png);
|
||||
$backgrounds_list = array_merge($backgrounds_list, $backgrounds_list_gif);
|
||||
asort($backgrounds_list);
|
||||
$table->data[$row][1] = html_print_select ($backgrounds_list, 'login_background', $config["login_background"], '', __('Default'), '', true);
|
||||
$table->data[$row][1] = html_print_select ($backgrounds_list,
|
||||
'login_background', $config["login_background"], '', __('Default'),
|
||||
'', true);
|
||||
|
||||
$row++;
|
||||
|
||||
|
|
|
@ -1949,7 +1949,7 @@ function get_periods ($custom = true, $show_default = true) {
|
|||
if ($custom) {
|
||||
$periods[-1] = __('custom');
|
||||
}
|
||||
|
||||
|
||||
if (empty($config['interval_values'])) {
|
||||
if ($show_default) {
|
||||
$periods[SECONDS_5MINUTES] = sprintf(__('%s minutes'), '5');
|
||||
|
|
|
@ -830,6 +830,26 @@ function config_process_config () {
|
|||
config_update_value ( 'flash_charts', true);
|
||||
}
|
||||
|
||||
if (!isset ($config["login_background"])) {
|
||||
config_update_value ('login_background', '');
|
||||
}
|
||||
|
||||
if (!isset ($config["paginate_module"])) {
|
||||
config_update_value ('paginate_module', false);
|
||||
}
|
||||
|
||||
if (!isset ($config["graphviz_bin_dir"])) {
|
||||
config_update_value ('graphviz_bin_dir', "");
|
||||
}
|
||||
|
||||
if (!isset ($config["fixed_header"])) {
|
||||
config_update_value ('fixed_header', false);
|
||||
}
|
||||
|
||||
if (!isset ($config["fixed_menu"])) {
|
||||
config_update_value ('fixed_menu', false);
|
||||
}
|
||||
|
||||
if (!isset ($config["custom_logo"])) {
|
||||
config_update_value ('custom_logo', 'pandora_logo_head.png');
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue