Skip to content

Commit 6d71ee8

Browse files
author
Sasha Anastasi
committed
fix conditional where both fields are required
1 parent deeee8e commit 6d71ee8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

classes/cache_config.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ private function generate_store_instance_config(array $stores): array {
208208
foreach ($stores as $name => $store) {
209209

210210
// First check that all the required fields are present in the store.
211-
if (!(array_key_exists('type', $store) ||
211+
if (!(array_key_exists('type', $store) &&
212212
array_key_exists('config', $store))) {
213213
throw new cache_exception(get_string('store_missing_fields', 'tool_forcedcache', $name));
214214
}

0 commit comments

Comments
 (0)