From 2a06b3dfbac62801716213b4d94e4abbba874f9c Mon Sep 17 00:00:00 2001 From: Tom Adams Date: Thu, 21 Aug 2014 15:21:44 -0400 Subject: [PATCH] Check for template_include passing non-strings. Fixes #1134 --- lib/wrapper.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/wrapper.php b/lib/wrapper.php index c5bd4b1..ce159ce 100644 --- a/lib/wrapper.php +++ b/lib/wrapper.php @@ -36,6 +36,11 @@ class Roots_Wrapping { } static function wrap($main) { + // Check for other filters returning null + if (!is_string($main)) { + return $main; + } + self::$main_template = $main; self::$base = basename(self::$main_template, '.php');