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 /includes/theme.inc | |
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 'includes/theme.inc')
-rw-r--r-- | includes/theme.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/theme.inc b/includes/theme.inc index 6c7a779d9..fb7038393 100644 --- a/includes/theme.inc +++ b/includes/theme.inc @@ -402,7 +402,7 @@ function _theme_process_registry(&$cache, $name, $type, $theme, $path) { // that themes don't need to specify this information, since the module // that registered the theme hook already has. foreach (array('variables', 'render element', 'pattern', 'base hook') as $key) { - if (!array_key_exists($key, $info) && isset($cache[$hook][$key])) { + if (!isset($info[$key]) && isset($cache[$hook][$key])) { $result[$hook][$key] = $cache[$hook][$key]; } } |