php 8 compat fix: Show entry backend pages when category exists
This commit is contained in:
parent
60f5277435
commit
40e44fd455
@ -46,7 +46,7 @@
|
||||
<select id="filter_category" name="serendipity[filter][category]">
|
||||
<option value="">-</option>
|
||||
{foreach $categories as $cat}
|
||||
<option value="{$cat.categoryid}"{($get.filter.category == $cat.categoryid) ? ' selected' : ''}>{' '|str_repeat:$cat.depth} {$cat.category_name|escape}</option>
|
||||
<option value="{$cat.categoryid}"{(isset($get.filter.category) and $get.filter.category == $cat.categoryid) ? ' selected' : ''}>{' '|str_repeat:$cat.depth} {$cat.category_name|escape}</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</div>
|
||||
|
@ -146,7 +146,7 @@
|
||||
<div class="form_check">
|
||||
<input type="hidden" name="serendipity[had_categories]" value="1">
|
||||
<span class="cat_view_pad">{$entry_cat.depth_pad}</span>
|
||||
<input id="serendipity_category_{$entry_cat.categoryid}" name="serendipity[categories][]" type="checkbox" value="{$entry_cat.categoryid}"{if $entry_cat.is_selected} checked="checked"{/if}>
|
||||
<input id="serendipity_category_{$entry_cat.categoryid}" name="serendipity[categories][]" type="checkbox" value="{$entry_cat.categoryid}"{if isset($entry_cat.is_selected) and $entry_cat.is_selected} checked="checked"{/if}>
|
||||
|
||||
<label for="serendipity_category_{$entry_cat.categoryid}">{$entry_cat.category_name|escape}</label>
|
||||
</div>
|
||||
|
Loading…
x
Reference in New Issue
Block a user