diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index b1cecdd77a..4e70478adc 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,8 @@ +2013-03-11 Miguel de Dios + + * include/functions_config.php: fixed PHP notices when the "homeurl" + is empty in some installations. + 2013-03-11 Miguel de Dios * include/functions_graph.php: change the text of legends of "Data" diff --git a/pandora_console/include/functions_config.php b/pandora_console/include/functions_config.php index 5b359f1b1c..64ee82fa1a 100644 --- a/pandora_console/include/functions_config.php +++ b/pandora_console/include/functions_config.php @@ -536,8 +536,10 @@ function config_process_config () { config_update_value ('language', 'en'); } - if (isset ($config['homeurl']) && $config['homeurl'][0] != '/') { - $config['homeurl'] = '/'.$config['homeurl']; + if (isset ($config['homeurl']) && (strlen($config['homeurl']) > 0)) { + if ($config['homeurl'][0] != '/') { + $config['homeurl'] = '/'.$config['homeurl']; + } } if (!isset ($config['date_format'])) {