summaryrefslogtreecommitdiff
path: root/includes/functions/functions_print.php
diff options
context:
space:
mode:
authorGreg Roach <fisharebest@gmail.com>2014-05-01 13:05:56 +0100
committerGreg Roach <fisharebest@gmail.com>2014-05-01 13:05:56 +0100
commite705689d7e463783c53b4e37ac867ab6dae4f418 (patch)
tree8c2595edec041dac061bf39233c0e377639a68ec /includes/functions/functions_print.php
parent2fb7e5d3e3555aad450a13373f8b944be1b2bada (diff)
downloadwebtrees-e705689d7e463783c53b4e37ac867ab6dae4f418.tar.gz
webtrees-e705689d7e463783c53b4e37ac867ab6dae4f418.tar.bz2
webtrees-e705689d7e463783c53b4e37ac867ab6dae4f418.zip
#1280903
Diffstat (limited to 'includes/functions/functions_print.php')
-rw-r--r--includes/functions/functions_print.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/includes/functions/functions_print.php b/includes/functions/functions_print.php
index d5d5ce60fd..c380a512d2 100644
--- a/includes/functions/functions_print.php
+++ b/includes/functions/functions_print.php
@@ -445,7 +445,6 @@ function print_fact_notes($factrec, $level, $textOnly=false) {
$nlevel = $level+1;
$ct = preg_match_all("/$level NOTE (.*)/", $factrec, $match, PREG_SET_ORDER);
for ($j=0; $j<$ct; $j++) {
- $nid = str_replace("@","",$match[$j][1]);
$spos1 = strpos($factrec, $match[$j][0], $previous_spos);
$spos2 = strpos($factrec."\n$level", "\n$level", $spos1+1);
if (!$spos2) $spos2 = strlen($factrec);
@@ -469,7 +468,7 @@ function print_fact_notes($factrec, $level, $textOnly=false) {
}
}
} else {
- $data='<div class="fact_NOTE"><span class="label">'.WT_I18N::translate('Note').'</span>: <span class="field error">'.$nid.'</span></div>';
+ $data='<div class="fact_NOTE"><span class="label">'.WT_I18N::translate('Note').'</span>: <span class="field error">'.$nmatch[1].'</span></div>';
}
}
if (!$textOnly) {