From 5b5cf0b0df599ab47f46f495dcd510d2a38af553 Mon Sep 17 00:00:00 2001 From: Angie Byron Date: Mon, 19 Oct 2009 02:06:52 +0000 Subject: #412730 follow-up by mikey_p: Fixed return value of theme() when theme function not found. --- includes/theme.inc | 1 + 1 file changed, 1 insertion(+) (limited to 'includes') diff --git a/includes/theme.inc b/includes/theme.inc index bcceb3fb5..4b55c5aee 100644 --- a/includes/theme.inc +++ b/includes/theme.inc @@ -763,6 +763,7 @@ function theme($hook, $variables = array()) { if (!isset($hooks[$hook])) { watchdog('theme', 'Theme key "@key" not found.', array('@key' => $hook), WATCHDOG_WARNING); + return ''; } $info = $hooks[$hook]; -- cgit v1.2.3