From 592fc00155eb2ff71bf688168194e392549e1bf5 Mon Sep 17 00:00:00 2001 From: mdtrooper Date: Mon, 11 Mar 2013 18:30:28 +0000 Subject: [PATCH] 2013-03-11 Miguel de Dios * include/functions_config.php: fixed PHP notices when the "homeurl" is empty in some installations. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7834 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 5 +++++ pandora_console/include/functions_config.php | 6 ++++-- 2 files changed, 9 insertions(+), 2 deletions(-) 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'])) {