From e05dabf3693a520523f35a588801740c94f11e48 Mon Sep 17 00:00:00 2001 From: Simon Wisselink Date: Mon, 15 Mar 2021 10:00:00 +0100 Subject: [PATCH] Fixed logic error in this changed if statement --- libs/sysplugins/smarty_internal_resource_file.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/sysplugins/smarty_internal_resource_file.php b/libs/sysplugins/smarty_internal_resource_file.php index 9b6f00d5..5e68b4db 100644 --- a/libs/sysplugins/smarty_internal_resource_file.php +++ b/libs/sysplugins/smarty_internal_resource_file.php @@ -73,7 +73,7 @@ class Smarty_Internal_Resource_File extends Smarty_Resource */ public function getContent(Smarty_Template_Source $source) { - if (($source->smarty->compile_check && $source->exists) + if (($source->smarty->compile_check && !$source->exists) || false === ($content = file_get_contents($source->filepath)) ) { throw new SmartyException(