2013-03-11 Miguel de Dios <miguel.dedios@artica.es>

* 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
This commit is contained in:
mdtrooper 2013-03-11 18:30:28 +00:00
parent 00d2fde04c
commit 592fc00155
2 changed files with 9 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2013-03-11 Miguel de Dios <miguel.dedios@artica.es>
* include/functions_config.php: fixed PHP notices when the "homeurl"
is empty in some installations.
2013-03-11 Miguel de Dios <miguel.dedios@artica.es> 2013-03-11 Miguel de Dios <miguel.dedios@artica.es>
* include/functions_graph.php: change the text of legends of "Data" * include/functions_graph.php: change the text of legends of "Data"

View File

@ -536,9 +536,11 @@ function config_process_config () {
config_update_value ('language', 'en'); config_update_value ('language', 'en');
} }
if (isset ($config['homeurl']) && $config['homeurl'][0] != '/') { if (isset ($config['homeurl']) && (strlen($config['homeurl']) > 0)) {
if ($config['homeurl'][0] != '/') {
$config['homeurl'] = '/'.$config['homeurl']; $config['homeurl'] = '/'.$config['homeurl'];
} }
}
if (!isset ($config['date_format'])) { if (!isset ($config['date_format'])) {
config_update_value ('date_format', 'F j, Y, g:i a'); config_update_value ('date_format', 'F j, Y, g:i a');