Fixed logic error in this changed if statement

This commit is contained in:
Simon Wisselink
2021-03-15 10:00:00 +01:00
parent 1eb2851c03
commit e05dabf369

View File

@ -73,7 +73,7 @@ class Smarty_Internal_Resource_File extends Smarty_Resource
*/ */
public function getContent(Smarty_Template_Source $source) 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)) || false === ($content = file_get_contents($source->filepath))
) { ) {
throw new SmartyException( throw new SmartyException(