Skip to content
This repository was archived by the owner on Oct 29, 2020. It is now read-only.

Commit a9db259

Browse files
committed
Merge pull request #5686 from angaither/redirect-logic-for-nodes
Update the redirect logic for translated nodes.
2 parents d0aa1a8 + 30e5506 commit a9db259

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/modules/dosomething/dosomething_global/dosomething_global.module

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,8 @@ function dosomething_global_init() {
7878
return;
7979
}
8080

81-
// If the node isn't translatable, don't do any redirection.
82-
if (count($node_variables['node']->translations->data) <= 1) {
81+
// If the node doesn't have translations, don't do any redirection.
82+
if (empty($node_variables['node']->translations->data)) {
8383
return;
8484
}
8585

0 commit comments

Comments
 (0)