summaryrefslogtreecommitdiff
path: root/library/WT/Media.php
diff options
context:
space:
mode:
Diffstat (limited to 'library/WT/Media.php')
-rw-r--r--library/WT/Media.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/WT/Media.php b/library/WT/Media.php
index bd4e93d899..19a7d1155f 100644
--- a/library/WT/Media.php
+++ b/library/WT/Media.php
@@ -86,7 +86,7 @@ class WT_Media extends WT_GedcomRecord {
$note = $this->getFactByType('NOTE');
if ($note) {
$text = $note->getValue();
- if (preg_match('//', $text)) {
+ if (preg_match('/@' . WT_REGEX_XREF . '@/', $text)) {
$text = $note->getTarget()->getNote();
}
return $text;