summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authorGreg Roach <fisharebest@gmail.com>2013-11-03 20:18:46 +0000
committerGreg Roach <fisharebest@gmail.com>2013-11-03 20:18:46 +0000
commitc9043b2633b8c8c820c3295f9a80c9069b1492e5 (patch)
tree1dc770e87a16f994cb1a724c7f3a61efbd6226e7 /includes
parent1eb0f0eaef40cc81dcee6e46ba3ca9f782fb5e4c (diff)
downloadwebtrees-c9043b2633b8c8c820c3295f9a80c9069b1492e5.tar.gz
webtrees-c9043b2633b8c8c820c3295f9a80c9069b1492e5.tar.bz2
webtrees-c9043b2633b8c8c820c3295f9a80c9069b1492e5.zip
No links to shared notes containing just one line
Diffstat (limited to 'includes')
-rw-r--r--includes/functions/functions_print.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/functions/functions_print.php b/includes/functions/functions_print.php
index 159d8834bc..c56d2835ca 100644
--- a/includes/functions/functions_print.php
+++ b/includes/functions/functions_print.php
@@ -449,7 +449,7 @@ function print_note_record($text, $nlevel, $nrec, $textOnly=false) {
$data .= ' class="note_details" dir="auto" style="white-space:pre-wrap">' . $cont_lines. '</div>';
} else {
if ($note) {
- $text = '<a href="' . $note->getHtmlUrl() . '">' . $first_line . '</a>';
+ $first_line = '<a href="' . $note->getHtmlUrl() . '">' . $first_line . '</a>';
}
$data .= '<span class="field" dir="auto">' . $first_line . '</span>';
}