diff options
| author | Greg Roach <fisharebest@webtrees.net> | 2018-10-14 12:15:36 +0100 |
|---|---|---|
| committer | Greg Roach <fisharebest@webtrees.net> | 2018-10-14 12:15:36 +0100 |
| commit | ff166e64e0c7a07abb1f2600180b985cdd6c2a51 (patch) | |
| tree | 099ed545c384d5ffbda2023b6539f7e3bcd08932 /app/Report/ReportParserGenerate.php | |
| parent | 528683980227e5399d67ada05c237d762a6302aa (diff) | |
| download | webtrees-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.php | 2 |
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 @ |
