summaryrefslogtreecommitdiff
path: root/library
diff options
context:
space:
mode:
authorfisharebest <fisharebest@gmail.com>2013-06-15 21:36:02 +0000
committerfisharebest <fisharebest@gmail.com>2013-06-15 21:36:02 +0000
commit6b830ca93ad377c1edf82fb45ba8c9c505494a96 (patch)
tree8102f493cc7a7c09e6ea68068c1425b6cc232c22 /library
parentc0c365ddaefca798a110b0000ec9b9dce9afdc4c (diff)
downloadwebtrees-6b830ca93ad377c1edf82fb45ba8c9c505494a96.tar.gz
webtrees-6b830ca93ad377c1edf82fb45ba8c9c505494a96.tar.bz2
webtrees-6b830ca93ad377c1edf82fb45ba8c9c505494a96.zip
#901278 - Partner incorrectly displayed as wife
Diffstat (limited to 'library')
-rw-r--r--library/WT/Person.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/WT/Person.php b/library/WT/Person.php
index ea4134a7e9..fa4dc859cf 100644
--- a/library/WT/Person.php
+++ b/library/WT/Person.php
@@ -95,7 +95,7 @@ class WT_Person extends WT_GedcomRecord {
}
// Consider relationship privacy (unless an admin is applying download restrictions)
if (WT_USER_GEDCOM_ID && WT_USER_PATH_LENGTH && $this->getGedId()==WT_GED_ID && $access_level=WT_USER_ACCESS_LEVEL) {
- return get_relationship(WT_USER_GEDCOM_ID, $this->getXref(), true, WT_USER_PATH_LENGTH)!==false;
+ return get_relationship(WT_Person::getInstance(WT_USER_GEDCOM_ID), $this, true, WT_USER_PATH_LENGTH)!==false;
}
// No restriction found - show living people to members only:
return WT_PRIV_USER>=$access_level;