Fixed broken searching of attachments via ACP (#1431)

* Fixed broken searching of attachments via ACP

* Update CHANGELOG.md
This commit is contained in:
Roman Kelesidis 2024-03-21 22:51:51 +07:00 committed by GitHub
commit b952ec7158
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 1 deletions

View file

@ -441,7 +441,7 @@ if ($view === 'attachments') {
$hidden_field = '<input type="hidden" name="attach_id_list[]" value="' . (int)$attachments[$i]['attach_id'] . '" />';
$template->assign_block_vars('attachrow', [
'ROW_NUMBER' => $i + ($_GET['start'] + 1),
'ROW_NUMBER' => $i + (@$_GET['start'] + 1),
'ROW_CLASS' => $row_class,
'FILENAME' => htmlspecialchars($attachments[$i]['real_filename']),