projects
/
pear
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fb78a39
)
try catch missing vars
author
Alan
<alan@roojs.com>
Wed, 23 Aug 2023 04:50:34 +0000
(12:50 +0800)
committer
Alan
<alan@roojs.com>
Wed, 23 Aug 2023 04:50:34 +0000
(12:50 +0800)
HTML/Template/Flexy/Compiler/Flexy.php
patch
|
blob
|
history
diff --git
a/HTML/Template/Flexy/Compiler/Flexy.php
b/HTML/Template/Flexy/Compiler/Flexy.php
index
46eda02
..
6e41a6a
100644
(file)
--- a/
HTML/Template/Flexy/Compiler/Flexy.php
+++ b/
HTML/Template/Flexy/Compiler/Flexy.php
@@
-461,7
+461,8
@@
class HTML_Template_Flexy_Compiler_Flexy extends HTML_Template_Flexy_Compiler {
return $loopon;
}
- $ret = 'if ($this->options[\'strict\'] || ('.
+ $ret = 'if (isset('.$loopon .') && ( ' .
+ '$this->options[\'strict\'] || ' .
'is_array('. $loopon. ') || ' .
'is_object(' . $loopon . '))) ' .
'foreach(' . $loopon . " ";