Commit 83e9590a authored by Dries's avatar Dries

- Patch #765830 by rfay: E_NOTICE if block is themed without an argument.

parent 05a06959
......@@ -78,10 +78,10 @@ function contextual_preprocess(&$variables, $hook) {
$keys = array_keys($hooks[$hook]['variables']);
$key = $keys[0];
}
else {
else if (!empty($hooks[$hook]['render element'])) {
$key = $hooks[$hook]['render element'];
}
if (isset($variables[$key])) {
if (!empty($key) && isset($variables[$key])) {
$element = $variables[$key];
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment