cvs: pear /HTML_Template_Flexy/Flexy/Compiler/Standard Tag.php
| From: | Alan Knowles | Date: | Wed, 10 Dec 2003 15:13:29 +0000 |
| Subject: | cvs: pear /HTML_Template_Flexy/Flexy/Compiler/Standard Tag.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-14762@lists.php.net to get a copy of this message | ||
alan_k Wed Dec 10 10:13:29 2003 EDT
Modified files:
/pear/HTML_Template_Flexy/Flexy/Compiler/Standard Tag.php
Log:
more validity checks..
Index: pear/HTML_Template_Flexy/Flexy/Compiler/Standard/Tag.php
diff -u pear/HTML_Template_Flexy/Flexy/Compiler/Standard/Tag.php:1.19
pear/HTML_Template_Flexy/Flexy/Compiler/Standard/Tag.php:1.20
--- pear/HTML_Template_Flexy/Flexy/Compiler/Standard/Tag.php:1.19 Wed Dec 10 10:12:28 2003
+++ pear/HTML_Template_Flexy/Flexy/Compiler/Standard/Tag.php Wed Dec 10 10:13:29 2003
@@ -10,7 +10,7 @@
* one instance of these exists for each namespace.
*
*
-* @version $Id: Tag.php,v 1.19 2003/12/10 15:12:28 alan_k Exp $
+* @version $Id: Tag.php,v 1.20 2003/12/10 15:13:29 alan_k Exp $
*/
class HTML_Template_Flexy_Compiler_Standard_Tag {
@@ -127,7 +127,7 @@
if (strtoupper($k) == 'FLEXY:RAW') {
- if (!isset($v[1]) || !is_object($v[1])) {
+ if (!is_array($v) || !isset($v[1]) || !is_object($v[1])) {
PEAR::raiseError(
'flexy:raw only accepts a variable or method call as an argument,
eg.'.
' flexy:raw="{somevalue}" you provided something else.' .