summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2009-10-19 02:06:52 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2009-10-19 02:06:52 +0000
commit5b5cf0b0df599ab47f46f495dcd510d2a38af553 (patch)
tree88221208a63b4e30234b6efad5c5056fbdbcdafe
parentdb722dac359d2eb920aa57a3a0b9909e5eaf1cd1 (diff)
downloadbrdo-5b5cf0b0df599ab47f46f495dcd510d2a38af553.tar.gz
brdo-5b5cf0b0df599ab47f46f495dcd510d2a38af553.tar.bz2
#412730 follow-up by mikey_p: Fixed return value of theme() when theme function not found.
-rw-r--r--includes/theme.inc1
1 files changed, 1 insertions, 0 deletions
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];