From 9a8cfc2fd10bd5d66ec0b73824be90d328f97781 Mon Sep 17 00:00:00 2001 From: Dries Buytaert <dries@buytaert.net> Date: Tue, 11 Aug 2009 14:16:55 +0000 Subject: [PATCH] - Patch #541346 by Jaza: enabling admin theme doesn't initialize blocks. --- modules/block/block.module | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/block/block.module b/modules/block/block.module index 306b7bcd7432..48171affa653 100644 --- a/modules/block/block.module +++ b/modules/block/block.module @@ -514,7 +514,7 @@ function block_system_themes_form_submit(&$form, &$form_state) { } } } - if ($form_state['values']['admin_theme'] && $form_state['values']['admin_theme'] != variable_get('admin_theme', 0)) { + if ($form_state['values']['admin_theme'] && $form_state['values']['admin_theme'] !== variable_get('admin_theme', 0)) { // If we're changing themes, make sure the theme has its blocks initialized. $has_blocks = (bool) db_query_range('SELECT 1 FROM {block} WHERE theme = :theme', array(':theme' => $form_state['values']['admin_theme']), 0, 1)->fetchField(); if (!$has_blocks) { -- GitLab