From 5ee20629567bf1429cff0d0a6d28a63b22be8bc2 Mon Sep 17 00:00:00 2001 From: Greg Roach Date: Fri, 10 Jan 2014 11:30:38 +0000 Subject: Ancestors report with children can fail when $type is undefined --- library/WT/Report/Base.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.3