diff --git a/phpBB/phpbb/storage/adapter_factory.php b/phpBB/phpbb/storage/adapter_factory.php index 4b27269524..4f5547f433 100644 --- a/phpBB/phpbb/storage/adapter_factory.php +++ b/phpBB/phpbb/storage/adapter_factory.php @@ -83,7 +83,7 @@ class adapter_factory { $options = []; - foreach ($definitions as $def) + foreach (array_keys($definitions) as $def) { $options[$def] = $this->config['storage\\' . $storage_name . '\\config\\' . $def]; }