fisharebest / webtrees

Online genealogy
https://webtrees.net
GNU General Public License v3.0
488 stars 301 forks source link

ageAtDeathStartHandler - undefined $fact variable #293

Closed wooc closed 10 years ago

wooc commented 10 years ago

Need to add $fact to globals in ageAtDeathStartHandler function in Report\Base.php file

fisharebest commented 10 years ago

In the function ageAtDeathStartHandler(), I can see that $factrec is not defined. But I cannot see $fact.

Which report uses this? How can I see the error?

fisharebest commented 10 years ago

OK - this tag is not used by any report. I guess it is used by a custom report. So, I added it to a report, so that I could test it.

Adding $factrec to the globals fixed the error.

wooc commented 10 years ago

Yes, my typo, should be $factrec. I can confirm that this tag is used by my custom report only now, but in the past it has been used by webtrees' core report. I don't remember which.

wooc commented 10 years ago

And your fix is correct, thanks.