Commit 4ecb676b by Seldaek

Fixes a notice appearing when defining sub-templates with no parameter

git-svn-id: svn://dwoo.org/dwoo/trunk@269 0598d79b-80c4-4d41-97ba-ac86fbbd088b
parent ce2fb905
......@@ -27,6 +27,8 @@ class Dwoo_Plugin_template extends Dwoo_Block_Plugin implements Dwoo_ICompilable
{
$params = $compiler->getCompiledParams($params);
$parsedParams = array();
if (!isset($params['*']))
$params['*'] = array();
foreach ($params['*'] as $param=>$defValue) {
if (is_numeric($param)) {
$param = $defValue;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment