diff options
Diffstat (limited to 'modules/block/block.module')
-rw-r--r-- | modules/block/block.module | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/block/block.module b/modules/block/block.module index 18a20af22..841761cdf 100644 --- a/modules/block/block.module +++ b/modules/block/block.module @@ -176,7 +176,8 @@ function block_menu() { * Menu item access callback - only admin or enabled themes can be accessed. */ function _block_themes_access($theme) { - return user_access('administer blocks') && ($theme->status || $theme->name == variable_get('admin_theme', 0)); + $admin_theme = variable_get('admin_theme'); + return user_access('administer blocks') && ($theme->status || ($admin_theme && ($theme->name == $admin_theme))); } /** |