PHP8 compat fixes for entry list
This commit is contained in:
@ -453,6 +453,12 @@ if (!isset($data['urltoken'])) { $data['urltoken'] = serendipity_setFormToken('
|
||||
if (!isset($data['formtoken'])) { $data['formtoken'] = serendipity_setFormToken(); }
|
||||
if (!isset($data['get']['filter'])) { $data['get']['filter'] = []; }
|
||||
|
||||
# php 8 compat section
|
||||
if (! isset($data['filter_import'])) { $data['filter_import'] = null; }
|
||||
if (! isset($data['sort_import'])) { $data['sort_import'] = null; }
|
||||
if (! isset($data['count'])) { $data['count'] = null; }
|
||||
if (! isset($data['is_entries'])) { $data['is_entries'] = null; }
|
||||
|
||||
echo serendipity_smarty_show('admin/entries.inc.tpl', $data);
|
||||
|
||||
/* vim: set sts=4 ts=4 expandtab : */
|
@ -53,7 +53,7 @@
|
||||
|
||||
<div class="form_field">
|
||||
<label for="filter_content">{$CONST.CONTENT}</label>
|
||||
<input id="filter_content" name="serendipity[filter][body]" type="text" value="{(isset($get.filter.body)) ? "{$get.filter.body|escape}" : ''}">
|
||||
<input id="filter_content" name="serendipity[filter][body]" type="text" value="{if isset($get.filter.body)}{$get.filter.body|escape}{/if}">
|
||||
</div>
|
||||
</div>
|
||||
</fieldset>
|
||||
|
Reference in New Issue
Block a user