diff options
author | Dries Buytaert <dries@buytaert.net> | 2010-10-31 03:56:46 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2010-10-31 03:56:46 +0000 |
commit | ad8eacac3bcf33ae6e1cf70196fc94a1fee3bd3a (patch) | |
tree | 8c1e631f4f69721861d52ac90dfdf90d2f862a96 /modules/contextual | |
parent | a234921b5f0f584c4508ab7b5ce88990a4907ace (diff) | |
download | brdo-ad8eacac3bcf33ae6e1cf70196fc94a1fee3bd3a.tar.gz brdo-ad8eacac3bcf33ae6e1cf70196fc94a1fee3bd3a.tar.bz2 |
- Patch #939398 by merlinofchaos: undefined offset: 0 in contextual_preprocess()
Diffstat (limited to 'modules/contextual')
-rw-r--r-- | modules/contextual/contextual.module | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/contextual/contextual.module b/modules/contextual/contextual.module index f0e6e032c..9e4cc2c42 100644 --- a/modules/contextual/contextual.module +++ b/modules/contextual/contextual.module @@ -95,7 +95,7 @@ function contextual_preprocess(&$variables, $hook) { } // Determine the primary theme function argument. - if (isset($hooks[$hook]['variables'])) { + if (!empty($hooks[$hook]['variables'])) { $keys = array_keys($hooks[$hook]['variables']); $key = $keys[0]; } |