From 65718466fc8f1ace930dd0e56b19b34478657e9e Mon Sep 17 00:00:00 2001 From: Neil Drumm Date: Tue, 28 Nov 2006 03:11:53 +0000 Subject: #84191 by myself and webchick. Properly check for an array element. --- themes/engines/phptemplate/phptemplate.engine | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'themes/engines/phptemplate/phptemplate.engine') diff --git a/themes/engines/phptemplate/phptemplate.engine b/themes/engines/phptemplate/phptemplate.engine index 823239633..faa4f320f 100644 --- a/themes/engines/phptemplate/phptemplate.engine +++ b/themes/engines/phptemplate/phptemplate.engine @@ -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']); } -- cgit v1.2.3