diff options
| author | Greg Roach <fisharebest@gmail.com> | 2014-01-10 11:30:38 +0000 |
|---|---|---|
| committer | Greg Roach <fisharebest@gmail.com> | 2014-01-10 11:30:38 +0000 |
| commit | 5ee20629567bf1429cff0d0a6d28a63b22be8bc2 (patch) | |
| tree | 0d595115ce52d55408b3cd243e57556921ab8554 | |
| parent | e1dbda543e5ec1c7e608eb489d98c5da1d380aac (diff) | |
| download | webtrees-5ee20629567bf1429cff0d0a6d28a63b22be8bc2.tar.gz webtrees-5ee20629567bf1429cff0d0a6d28a63b22be8bc2.tar.bz2 webtrees-5ee20629567bf1429cff0d0a6d28a63b22be8bc2.zip | |
Ancestors report with children can fail when $type is undefined
| -rw-r--r-- | library/WT/Report/Base.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/library/WT/Report/Base.php b/library/WT/Report/Base.php index bddbc15201..b083122dd9 100644 --- a/library/WT/Report/Base.php +++ b/library/WT/Report/Base.php @@ -2239,7 +2239,7 @@ function varSHandler($attrs) { $var = $vars[$var]['id']; } else { $tfact = $fact; - if (($fact == "EVEN" or $fact == "FACT") and $type != " ") { + if (($fact == "EVEN" || $fact == "FACT") && is_string($type) && $type != " ") { // Use : // n TYPE This text if string $tfact = $type; |
