cvs: pear /HTML_Template_Xipe/Xipe/Filter Basic.php
| From: | Wolfram Kriesing | Date: | Sat, 18 Jan 2003 15:28:12 +0000 |
| Subject: | cvs: pear /HTML_Template_Xipe/Xipe/Filter Basic.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-8371@lists.php.net to get a copy of this message | ||
cain Sat Jan 18 10:28:12 2003 EDT
Modified files:
/pear/HTML_Template_Xipe/Xipe/Filter Basic.php
Log:
- prevent E_ALL warnings in compiled template
Index: pear/HTML_Template_Xipe/Xipe/Filter/Basic.php
diff -u pear/HTML_Template_Xipe/Xipe/Filter/Basic.php:1.17
pear/HTML_Template_Xipe/Xipe/Filter/Basic.php:1.18
--- pear/HTML_Template_Xipe/Xipe/Filter/Basic.php:1.17 Fri Jan 10 08:21:51 2003
+++ pear/HTML_Template_Xipe/Xipe/Filter/Basic.php Sat Jan 18 10:28:12 2003
@@ -15,7 +15,7 @@
// +----------------------------------------------------------------------+
// | Authors: Wolfram Kriesing <wolfram@kriesing.de> |
// +----------------------------------------------------------------------+
-// $Id: Basic.php,v 1.17 2003/01/10 13:21:51 cain Exp $
+// $Id: Basic.php,v 1.18 2003/01/18 15:28:12 cain Exp $
require_once 'HTML/Template/Xipe/Options.php';
@@ -321,7 +321,7 @@
"\n$1".
$this->options['delimiter'][0].
- "if(is_array($2) && sizeof($2)>0)".
+ "if(is_array(@$2) && sizeof(@$2)>0)".
$this->options['delimiter'][1].
"\n$1 ". // indent it one more space than
before, so an 'else' goes with the 'if' :-)
$this->options['delimiter'][0].