Index: trunk/extensions/PageSchemas/PageSchemas.classes.php |
— | — | @@ -181,7 +181,7 @@ |
182 | 182 | } |
183 | 183 | if ( $tag == 'Template' ) { |
184 | 184 | $ignore = (string) $child->attributes()->ignore; |
185 | | - if( count($child->children()) > 1 ){ |
| 185 | + if( count($child->children()) > 0 ){ |
186 | 186 | $templateObj = new PSTemplate($child); |
187 | 187 | $this->PSTemplates[$i++]= $templateObj; |
188 | 188 | }else if( $ignore != "true" ) { |
— | — | @@ -261,7 +261,7 @@ |
262 | 262 | } else if ( $child->getName() == "Field" ){ |
263 | 263 | $ignore = (string) $child->attributes()->ignore; |
264 | 264 | wfDebugLog( 'myextension', 'Something is not right: ' . print_r( count($child->children()), true ) ); |
265 | | - if( count($child->children()) > 1 ){ //@TODO :Can be dealt more efficiently |
| 265 | + if( count($child->children()) > 0 ){ //@TODO :Can be dealt more efficiently |
266 | 266 | $fieldObj = new PSTemplateField($child); |
267 | 267 | $this->PSFields[$i++]= $fieldObj; |
268 | 268 | }else if( $ignore != "true" ) { |