aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb/di/service_collection.php
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/phpbb/di/service_collection.php')
-rw-r--r--phpBB/phpbb/di/service_collection.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/phpBB/phpbb/di/service_collection.php b/phpBB/phpbb/di/service_collection.php
index 3ae3f793c0..6a2e62a553 100644
--- a/phpBB/phpbb/di/service_collection.php
+++ b/phpBB/phpbb/di/service_collection.php
@@ -51,7 +51,8 @@ class service_collection extends \ArrayObject
*/
public function offsetGet($index)
{
- if (($task = parent::offsetGet($index)) == null)
+ $task = parent::offsetGet($index);
+ if ($task == null)
{
$task = $this->container->get($index);
$this->offsetSet($index, $task);