diff options
author | Dries Buytaert <dries@buytaert.net> | 2010-10-28 02:27:09 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2010-10-28 02:27:09 +0000 |
commit | 1d0f6479da4cdbd14b747ead6cb934a769a9579d (patch) | |
tree | 3875e9403a28aac4477a3531379c85b6b10cd660 /modules/block | |
parent | 0344a78d9643d97e1aff8ab94fec551bc091bfbc (diff) | |
download | brdo-1d0f6479da4cdbd14b747ead6cb934a769a9579d.tar.gz brdo-1d0f6479da4cdbd14b747ead6cb934a769a9579d.tar.bz2 |
- Patch #839556 by jrchamp, dmitrig01: remove pointless usage of array_key_exists().
Diffstat (limited to 'modules/block')
-rw-r--r-- | modules/block/block.module | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/block/block.module b/modules/block/block.module index 3a0be2520..7f0f21070 100644 --- a/modules/block/block.module +++ b/modules/block/block.module @@ -607,7 +607,7 @@ function block_theme_initialize($theme) { $result = db_query("SELECT * FROM {block} WHERE theme = :theme", array(':theme' => $default_theme), array('fetch' => PDO::FETCH_ASSOC)); foreach ($result as $block) { // If the region isn't supported by the theme, assign the block to the theme's default region. - if ($block['status'] && !array_key_exists($block['region'], $regions)) { + if ($block['status'] && !isset($regions[$block['region']])) { $block['region'] = system_default_region($theme); } $block['theme'] = $theme; |