From 5c56d816dd3eb16e8ecdabd100643a5f396fd46a Mon Sep 17 00:00:00 2001 From: Urban Müller Date: Thu, 17 Sep 2015 14:52:47 +0200 Subject: do not suppress errors inside included files --- itjs.class | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/itjs.class b/itjs.class index 6ef1c8f..b8520f5 100644 --- a/itjs.class +++ b/itjs.class @@ -160,7 +160,8 @@ static function filecontents($filenames, $execphp = true) list($filename, $paramstr) = explode("?", $filename); if ($paramstr && $execphp) parse_str($paramstr, $_GET); - $result .= it::replace(array('^1$' => ""), $execphp ? @include($filename) : @file_get_contents($filename), array('utf8' => false)); + if (file_exists($filename)) + $result .= it::replace(array('^1$' => ""), $execphp ? include($filename) : file_get_contents($filename), array('utf8' => false)); $_GET = $origget; } $result .= ob_get_clean(); -- cgit v1.2.3