Commit af6d13a2 authored by krystalcode's avatar krystalcode Committed by Renato Goncalves de Araujo
Browse files

Issue #2480723 by krystalcode, naidim, rrrob, sumitmadan, Argus, diqidoq,...

Issue #2480723 by krystalcode, naidim, rrrob, sumitmadan, Argus, diqidoq, RenatoG, jbitdrop: Avoid warning in diff integration for links without title
parent c6bb41bd
......@@ -11,11 +11,11 @@
function link_field_diff_view($items, $context) {
$diff_items = array();
foreach ($items as $delta => $item) {
if ($item['url'] && $item['title']) {
if ($item['url'] && isset($item['title'])) {
$diff_items[$delta] = $item['title'] . ' (' . $item['url'] . ')';
}
else {
$diff_items[$delta] = $item['title'] . $item['url'];
$diff_items[$delta] = $item['url'];
}
}
return $diff_items;
......
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