summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfisharebest <fisharebest@gmail.com>2010-12-15 17:15:52 +0000
committerfisharebest <fisharebest@gmail.com>2010-12-15 17:15:52 +0000
commit8278bfff9b41a9c3ed7fe3b5e993a0d56d0a82a0 (patch)
tree97a0c88b37feae393e15af526fb3b2647059941e
parent20e927f3f679148b66fbe4c68ecad284514845ac (diff)
downloadwebtrees-8278bfff9b41a9c3ed7fe3b5e993a0d56d0a82a0.tar.gz
webtrees-8278bfff9b41a9c3ed7fe3b5e993a0d56d0a82a0.tar.bz2
webtrees-8278bfff9b41a9c3ed7fe3b5e993a0d56d0a82a0.zip
Fix: Level 2 tags not being hidden when HIDE_GEDCOM_ERRORS is set.
-rw-r--r--includes/functions/functions_print_facts.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/functions/functions_print_facts.php b/includes/functions/functions_print_facts.php
index dd578d866d..b2a63bcf72 100644
--- a/includes/functions/functions_print_facts.php
+++ b/includes/functions/functions_print_facts.php
@@ -419,7 +419,7 @@ function print_fact(&$eventObj) {
$factref = $match[$i][1];
if (!in_array($factref, $special_facts)) {
$label = translate_fact($fact.':'.$factref, $label_person);
- if (!$HIDE_GEDCOM_ERRORS || array_key_exists($fact, $FACTS)) {
+ if (!$HIDE_GEDCOM_ERRORS || array_key_exists($factref, $FACTS)) {
if ($SHOW_FACT_ICONS && file_exists(WT_THEME_DIR."images/facts/".$factref.".gif")) {
echo "<img src=\"".WT_THEME_DIR."images/facts/", $factref, ".gif\" alt=\"{$label}\" title=\"{$label}\" align=\"middle\" /> ";
} else {