Commit 5b5cf0b0 authored by webchick's avatar webchick
Browse files

#412730 follow-up by mikey_p: Fixed return value of theme() when theme function not found.

parent db722dac
......@@ -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];
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment