1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-01 22:40:39 +02:00

[ticket/14957] Make sure config_php_file is set before injecting

PHPBB3-14957
This commit is contained in:
Marc Alexander
2017-01-03 22:53:18 +01:00
parent 9f149e345b
commit a4d67c55d9

View File

@@ -525,6 +525,11 @@ class container_builder
*/ */
protected function inject_dbal_driver() protected function inject_dbal_driver()
{ {
if (empty($this->config_php_file))
{
return;
}
$config_data = $this->config_php_file->get_all(); $config_data = $this->config_php_file->get_all();
if (!empty($config_data)) if (!empty($config_data))
{ {