summaryrefslogtreecommitdiff
path: root/app/Report/ReportParserGenerate.php
diff options
context:
space:
mode:
authorGreg Roach <fisharebest@webtrees.net>2018-10-14 12:15:36 +0100
committerGreg Roach <fisharebest@webtrees.net>2018-10-14 12:15:36 +0100
commitff166e64e0c7a07abb1f2600180b985cdd6c2a51 (patch)
tree099ed545c384d5ffbda2023b6539f7e3bcd08932 /app/Report/ReportParserGenerate.php
parent528683980227e5399d67ada05c237d762a6302aa (diff)
downloadwebtrees-ff166e64e0c7a07abb1f2600180b985cdd6c2a51.tar.gz
webtrees-ff166e64e0c7a07abb1f2600180b985cdd6c2a51.tar.bz2
webtrees-ff166e64e0c7a07abb1f2600180b985cdd6c2a51.zip
Strict-types
Diffstat (limited to 'app/Report/ReportParserGenerate.php')
-rw-r--r--app/Report/ReportParserGenerate.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/Report/ReportParserGenerate.php b/app/Report/ReportParserGenerate.php
index f0b580f610..41f7850a16 100644
--- a/app/Report/ReportParserGenerate.php
+++ b/app/Report/ReportParserGenerate.php
@@ -2852,7 +2852,7 @@ class ReportParserGenerate extends ReportParserBase
$value = trim($match[1]);
if ($t === 'NOTE' && preg_match('/^@(.+)@$/', $value, $match)) {
$note = Note::getInstance($match[1], $this->tree);
- if ($note) {
+ if ($note instanceof Note) {
$value = $note->getNote();
} else {
//-- set the value to the id without the @