#84191 by myself and webchick. Properly check for an array element.

5.x
Neil Drumm 2006-11-28 03:11:53 +00:00
parent 027b3b2206
commit 65718466fc
1 changed files with 1 additions and 1 deletions

View File

@ -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']);
}