1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-13 18:14:26 +02:00

Fixes #5211 - Fatal error on search.

This commit is contained in:
camer0n
2024-03-26 10:38:09 -07:00
parent 6f6418fb79
commit b432e20c6e
2 changed files with 14 additions and 11 deletions

View File

@@ -201,8 +201,10 @@ if (isset($_POST['update_prefs']))
}
if(empty($search_prefs['core_handlers']))
{
$search_prefs['core_handlers'] = [];
}
$handlers_total = count($search_prefs['core_handlers']) + count($search_prefs['plug_handlers']);
@@ -264,7 +266,7 @@ if ($query[0] == 'settings')
<tr>
<td>".SEALAN_3."</td>
<td class='form-inline'>
".$frm->radio_switch('search_sort', $search_prefs['mysql_sort'], 'MySQL', SEALAN_31)."&nbsp;
".$frm->radio_switch('search_sort', $search_prefs['mysql_sort'], 'MySQL', 'PHP')."&nbsp;
".$frm->text('php_limit', $tp -> toForm($search_prefs['php_limit']), 5, 'class=tbox&size=mini')."&nbsp;".SEALAN_32."
<span class='field-help'>".SEALAN_49."</span>
</td>