diff --git a/libs/sysplugins/smarty_internal_method_compilealltemplates.php b/libs/sysplugins/smarty_internal_method_compilealltemplates.php
index 685fc0c0..3325cd8e 100644
--- a/libs/sysplugins/smarty_internal_method_compilealltemplates.php
+++ b/libs/sysplugins/smarty_internal_method_compilealltemplates.php
@@ -69,7 +69,7 @@ class Smarty_Internal_Method_CompileAllTemplates
if (!substr_compare($_file, $extension, - strlen($extension)) == 0) {
continue;
}
- if ($_fileinfo->getPath() == !substr($_dir, 0, - 1)) {
+ if ($_fileinfo->getPath() !== substr($_dir, 0, - 1)) {
$_file = substr($_fileinfo->getPath(), strlen($_dir)) . DS . $_file;
}
echo "\n
", $_dir, '---', $_file;
@@ -108,4 +108,4 @@ class Smarty_Internal_Method_CompileAllTemplates
echo "\n
";
return $_count;
}
-}
\ No newline at end of file
+}