Commit 742db343 authored by jcnventura's avatar jcnventura

Fix wrong fix to #299123

parent 77e38352
......@@ -414,6 +414,8 @@ function print_link_allowed($args) {
}
if (!empty($args['node'])) {
static $node_type = FALSE;
$node = $args['node'];
if (($node_type === FALSE) && isset($node->type)) {
$node_type = $node->type;
}
......
......@@ -226,6 +226,8 @@ function print_mail_link_allowed($args) {
}
if (!empty($args['node'])) {
static $node_type = FALSE;
$node = $args['node'];
if (($node_type === FALSE) && isset($node->type)) {
$node_type = $node->type;
}
......
......@@ -263,6 +263,8 @@ function print_pdf_link_allowed($args) {
}
if (!empty($args['node'])) {
static $node_type = FALSE;
$node = $args['node'];
if (($node_type === FALSE) && isset($node->type)) {
$node_type = $node->type;
}
......
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