summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authorBrian Holland <windmillway2@gmail.com>2010-09-17 08:23:56 +0000
committerBrian Holland <windmillway2@gmail.com>2010-09-17 08:23:56 +0000
commit76e4d1d18e7764631bdf9e08e81be2b679379baf (patch)
tree0a3e1968e5734f8828874b31781517bd8348d758 /includes
parent202b6232f01b113222e31c95e37831ebbf0bdd96 (diff)
downloadwebtrees-76e4d1d18e7764631bdf9e08e81be2b679379baf.tar.gz
webtrees-76e4d1d18e7764631bdf9e08e81be2b679379baf.tar.bz2
webtrees-76e4d1d18e7764631bdf9e08e81be2b679379baf.zip
Bug #639977 - 1.0.2 undefined variable centitl in mediaviewer.php
Diffstat (limited to 'includes')
-rw-r--r--includes/functions/functions_print_facts.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/includes/functions/functions_print_facts.php b/includes/functions/functions_print_facts.php
index 1ba12e4a20..dec6c3b433 100644
--- a/includes/functions/functions_print_facts.php
+++ b/includes/functions/functions_print_facts.php
@@ -417,6 +417,7 @@ function print_fact(&$eventObj, $noedit=false) {
//-- find multimedia objects
print_media_links($factrec, 2, $pid);
}
+ echo "<br />";
echo "</td>";
echo "\n\t\t</tr>";
}
@@ -493,7 +494,7 @@ function print_fact_sources($factrec, $level, $return=false) {
if (!$spos2) $spos2 = strlen($factrec);
$srec = substr($factrec, $spos1, $spos2-$spos1);
$lt = preg_match_all("/$nlevel \w+/", $srec, $matches);
- $data .= "<br />";
+// $data .= "<br />";
$data .= "\n\t\t<span class=\"label\">";
$elementID = $sid."-".floor(microtime()*1000000);
if ($EXPAND_SOURCES) $plusminus="minus"; else $plusminus="plus";
@@ -536,6 +537,7 @@ function print_fact_sources($factrec, $level, $return=false) {
if ($printDone) $data .= "<br />";
if (!$return) echo $data;
else return $data;
+ echo "<br />";
}
//-- Print the links to multi-media objects
@@ -1152,7 +1154,8 @@ function print_main_notes($factrec, $level, $pid, $linenum, $noedit=false) {
//-- print linked note records
$noterec = find_gedcom_record($nid, $ged_id, true);
$nt = preg_match("/0 @$nid@ NOTE (.*)/", $noterec, $n1match);
- $text ="";
+ $text = "";
+ $centitl = "";
if ($nt>0) {
// If Census assistant installed, enable hotspot link on shared note title ---------------------
if (file_exists(WT_ROOT.'modules/GEDFact_assistant/_CENS/census_note_decode.php')) {