#84191 by myself and webchick. Properly check for an array element.
parent
027b3b2206
commit
65718466fc
|
@ -63,7 +63,7 @@ function _phptemplate_callback($hook, $variables = array(), $suggestions = array
|
|||
$variables = array_merge($variables, call_user_func($variables_function, $hook, $variables));
|
||||
}
|
||||
|
||||
if (is_array($variables['template_files'])) {
|
||||
if (isset($variables['template_files'])) {
|
||||
$suggestions = array_merge($suggestions, $variables['template_files']);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue