mirror of
https://github.com/smarty-php/smarty.git
synced 2025-10-22 00:41:37 +02:00
code cleanup and optimizations 3.1.32-dev-34
This commit is contained in:
@@ -81,7 +81,7 @@ class Smarty_Internal_Compile_Include_Php extends Smarty_Internal_CompileBase
|
||||
}
|
||||
}
|
||||
}
|
||||
if ($_filepath == false) {
|
||||
if ($_filepath === false) {
|
||||
$compiler->trigger_template_error("{include_php} file '{$_file}' is not readable", null, true);
|
||||
}
|
||||
if (isset($compiler->smarty->security_policy)) {
|
||||
@@ -93,7 +93,7 @@ class Smarty_Internal_Compile_Include_Php extends Smarty_Internal_CompileBase
|
||||
}
|
||||
$_once = '_once';
|
||||
if (isset($_attr[ 'once' ])) {
|
||||
if ($_attr[ 'once' ] == 'false') {
|
||||
if ($_attr[ 'once' ] === 'false') {
|
||||
$_once = '';
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user