From 7e9b5527534ce2d8b19fa1afa4f1614fa659c421 Mon Sep 17 00:00:00 2001 From: Dries Buytaert <dries@buytaert.net> Date: Sun, 19 Oct 2008 20:06:48 +0000 Subject: [PATCH] - Patch #323182 by chx: code cleanup. --- includes/theme.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/theme.inc b/includes/theme.inc index 5473cb937e56..e55f2732fbb8 100644 --- a/includes/theme.inc +++ b/includes/theme.inc @@ -1799,7 +1799,7 @@ function template_preprocess_page(&$variables) { // Load all region content assigned via blocks. foreach (array_keys($regions) as $region) { // Prevent left and right regions from rendering blocks when 'show_blocks' == FALSE. - if (!(!$variables['show_blocks'] && ($region == 'left' || $region == 'right'))) { + if ($variables['show_blocks'] || ($region != 'left' && $region != 'right'))) { $blocks = theme('blocks', $region); } else { -- GitLab