@ -114,13 +114,15 @@ if (empty($_configuration['statistics_database']) && $already_installed) {
}
}
global $database_connection;
global $database_connection;
// Connect to the server database and select the main chamilo database.
// Connect to the server database and select the main chamilo database.
// When $_configuration['db_persistent_connection'] is set, it is expected to be a boolean type.
if (!($conn_return = @Database::connect(
if (!($conn_return = @Database::connect(
array(
array(
'server' => $_configuration['db_host'],
'server' => $_configuration['db_host'],
'username' => $_configuration['db_user'],
'username' => $_configuration['db_user'],
'password' => $_configuration['db_password'],
'password' => $_configuration['db_password'],
'persistent' => $_configuration['db_persistent_connection'] // When $_configuration['db_persistent_connection'] is set, it is expected to be a boolean type.