Skip to content
Snippets Groups Projects
Commit 9365405c authored by Igor Biki's avatar Igor Biki
Browse files

ISTWCMS-4943: Update theme function to fix tests.

parent 80a0318b
No related branches found
No related tags found
1 merge request!41ISTWCMS-4943: Update theme function to fix tests.
......@@ -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);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment