summaryrefslogtreecommitdiff
path: root/includes/theme.inc
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2010-10-28 02:27:09 +0000
committerDries Buytaert <dries@buytaert.net>2010-10-28 02:27:09 +0000
commit1d0f6479da4cdbd14b747ead6cb934a769a9579d (patch)
tree3875e9403a28aac4477a3531379c85b6b10cd660 /includes/theme.inc
parent0344a78d9643d97e1aff8ab94fec551bc091bfbc (diff)
downloadbrdo-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.inc2
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];
}
}