# This patch file was generated by NetBeans IDE
# This patch can be applied using context Tools: Apply Diff Patch action on respective folder.
# It uses platform neutral UTF-8 encoding.
# Above lines and this line are ignored by the patching process.
Index: contributions/modules/link/link.module
--- contributions/modules/link/link.module Base (1.24.4.11)
+++ contributions/modules/link/link.module Locally Modified (Based On 1.24.4.11)
@@ -364,6 +364,13 @@
     $item['attributes'] = (array)unserialize($item['attributes']);
   }
 
+  if (empty($field['attributes'])) {
+    $field['attributes'] = array();
+  }
+  if (!is_array($field['attributes'])) {
+    $field['attributes'] = unserialize($field['attributes']);
+  }
+  
   // Add default attributes.
   $field['attributes'] += _link_default_attributes();
 
@@ -376,6 +383,9 @@
     $item['attributes']['target'] = $field['attributes']['target'];
   }
 
+  
+  
+
   // Remove the target attribute if the default (no target) is selected.
   if (empty($item['attributes']) || $item['attributes']['target'] == LINK_TARGET_DEFAULT) {
     unset($item['attributes']['target']);
