diff --git a/fp-plugins/commentcenter/tpls/editpol.tpl b/fp-plugins/commentcenter/tpls/editpol.tpl index ed2dff5..be4ff38 100644 --- a/fp-plugins/commentcenter/tpls/editpol.tpl +++ b/fp-plugins/commentcenter/tpls/editpol.tpl @@ -4,19 +4,19 @@
{$plang.apply_to}
- +
- +
- +
@@ -27,16 +27,16 @@

{$plang.se_desc|sprintf:"`$plang.some_entries`"}

{$plang.se_fill}

-{if !empty($policy.entry) && !is_array($policy.entry)} +{if isset($policy.entry) && !empty($policy.entry) && !is_array($policy.entry)} {assign var="parity" value=1} -{elseif !empty($policy.entry)} +{elseif isset($policy.entry) && !empty($policy.entry)} {foreach name=entries_foreach from=$policy.entry item=entry} {if ($smarty.foreach.entries_foreach.iteration % 2)==0}
{/if} {if ($smarty.foreach.entries_foreach.iteration % 2)==1 && $smarty.foreach.entries_foreach.last}{assign var="parity" value=1}{/if} {/foreach} {/if} -{if $parity==1}
{/if} +{if isset($parity) && $parity==1}
{/if}
@@ -52,7 +52,11 @@
{$plang.categories} +{if isset($policy.categories)} {list_categories type=form selected=$policy.categories} +{else} +{list_categories type=form} +{/if}
diff --git a/fp-plugins/commentcenter/tpls/listcomments.tpl b/fp-plugins/commentcenter/tpls/listcomments.tpl index b1ea548..8e429e2 100644 --- a/fp-plugins/commentcenter/tpls/listcomments.tpl +++ b/fp-plugins/commentcenter/tpls/listcomments.tpl @@ -25,7 +25,7 @@ {/if} {if isset($comm.url)}{$comm.name|wp_specialchars}{else}{$comm.name|wp_specialchars}{/if} -{$comm.email|wp_specialchars} +{if isset($comm.email)}{$comm.email|wp_specialchars}{else} {/if} {* a bit hackish: {$comm.ip-adress} would lead to $this->_tpl_vars['comm']['ip']-$this->_tpl_vars['ddress']; *} {assign var=ipadress value="ip-address"} {$comm.$ipadress}