Browse files

#1053812 Undefined index 'translation' when enable 'Hide content tran…

…slation links'
  • Loading branch information...
1 parent 26eea26 commit 03e1ca581a6f909642d231320a841861c6c31042 Jose Reyero committed Feb 23, 2011
Showing with 3 additions and 1 deletion.
  1. +3 −1 i18n_node/i18n_node.module
View
4 i18n_node/i18n_node.module
@@ -379,7 +379,9 @@ function i18n_node_node_view_alter(&$build) {
// Hide node translation links.
if (variable_get('i18n_hide_translation_links', 0)) {
- unset($build['links']['translation']);
+ if (isset($build['links']['translation'])) {
+ unset($build['links']['translation']);
+ }
}
elseif (!empty($node->tnid) && !empty($build['links']['translation'])) {
// Set the right languages depending on language mode (extended)

0 comments on commit 03e1ca5

Please sign in to comment.