aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb/di
diff options
context:
space:
mode:
authorMarc Alexander <admin@m-a-styles.de>2017-01-03 21:53:14 +0100
committerMarc Alexander <admin@m-a-styles.de>2017-01-03 21:53:14 +0100
commitff411ee81bc12574138577a5bb4b0cbc9004b00e (patch)
treef9af1811ed87b3fe1031df94b4a7e0560031712d /phpBB/phpbb/di
parent14fd750b087c7c9e31f9701bb08ced08db964d12 (diff)
downloadforums-ff411ee81bc12574138577a5bb4b0cbc9004b00e.tar
forums-ff411ee81bc12574138577a5bb4b0cbc9004b00e.tar.gz
forums-ff411ee81bc12574138577a5bb4b0cbc9004b00e.tar.bz2
forums-ff411ee81bc12574138577a5bb4b0cbc9004b00e.tar.xz
forums-ff411ee81bc12574138577a5bb4b0cbc9004b00e.zip
[ticket/14957] Do not use method return in write context
Fix for PHP 5.3.x compatibility. PHPBB3-14957
Diffstat (limited to 'phpBB/phpbb/di')
-rw-r--r--phpBB/phpbb/di/container_builder.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/phpBB/phpbb/di/container_builder.php b/phpBB/phpbb/di/container_builder.php
index 9801b817d6..5f3aa685bf 100644
--- a/phpBB/phpbb/di/container_builder.php
+++ b/phpBB/phpbb/di/container_builder.php
@@ -309,7 +309,8 @@ class container_builder
*/
protected function inject_dbal_driver()
{
- if (!empty($this->config_php_file->get_all()))
+ $config_data = $this->config_php_file->get_all();
+ if (!empty($config_data))
{
$this->container->set('dbal.conn.driver', $this->get_dbal_connection());
}