Commit 9365405c authored by Igor Biki's avatar Igor Biki
Browse files

ISTWCMS-4943: Update theme function to fix tests.

parent 80a0318b
......@@ -400,7 +400,7 @@ function uw_fdsu_theme_resp_preprocess_block(&$variables) {
// If node is not object by this point, probably on
// a revision page where node is an integer, so load
// the node.
if (!is_object($node)) {
if ($node && !is_object($node)) {
$node = Node::load($node);
}
......
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