Commit 0924f097 authored by silverham's avatar silverham Committed by paulocs

Issue #3177007 by paulocs, silverham: Sitewide context broken due to #3045666

parent 03125c3c
......@@ -309,6 +309,11 @@ class ContextManager {
protected function applyContexts(ConditionPluginCollection &$conditions) {
// If no contexts to check, the return should be TRUE.
// For example, empty is the same as sitewide condition.
if (count($conditions) === 0) {
return TRUE;
$passed = FALSE;
foreach ($conditions as $condition) {
if ($condition instanceof ContextAwarePluginInterface) {
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment