Commit f687657f authored by John C Fiala's avatar John C Fiala
Browse files

Bug Report #587078 by BenStallings: ['attributes'] was not being converted to...

Bug Report #587078 by BenStallings: ['attributes'] was not being converted to an empty array for view-related displays of links without attributes.
parent 82c09d0d
......@@ -361,7 +361,7 @@ function _link_sanitize(&$item, $delta, &$field, &$node) {
// Unserialize attributtes array if it has not been unserialized yet.
if (!is_array($item['attributes'])) {
$item['attributes'] = unserialize($item['attributes']);
$item['attributes'] = (array)unserialize($item['attributes']);
}
// Add default attributes.
......
Supports Markdown
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