From b952ec7158c7c924d0aa71e0572e2d299828a132 Mon Sep 17 00:00:00 2001 From: Roman Kelesidis Date: Thu, 21 Mar 2024 22:51:51 +0700 Subject: [PATCH] Fixed broken searching of attachments via ACP (#1431) * Fixed broken searching of attachments via ACP * Update CHANGELOG.md --- CHANGELOG.md | 1 + admin/admin_attach_cp.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 30f2da602..fa8d95296 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -16,6 +16,7 @@ - Make post date clickable in `posting.php` [\#1427](https://github.com/torrentpier/torrentpier/pull/1427) ([belomaxorka](https://github.com/belomaxorka)) - Removed `wbr()` [\#1387](https://github.com/torrentpier/torrentpier/pull/1387) ([belomaxorka](https://github.com/belomaxorka)) - Removed converting for legacy md5 passwords [\#1386](https://github.com/torrentpier/torrentpier/pull/1386) ([belomaxorka](https://github.com/belomaxorka)) +- Fixed broken searching of attachments via ACP [\#1431](https://github.com/torrentpier/torrentpier/pull/1431) ([belomaxorka](https://github.com/belomaxorka)) - Fixed issue with poll_users cleaning at every cron job startup [\#1390](https://github.com/torrentpier/torrentpier/pull/1390) ([belomaxorka](https://github.com/belomaxorka)) - Fixed Undefined variable $wordCensor [\#1400](https://github.com/torrentpier/torrentpier/pull/1400) ([belomaxorka](https://github.com/belomaxorka)) - Improved word censor 🤐 [\#1393](https://github.com/torrentpier/torrentpier/pull/1393) ([belomaxorka](https://github.com/belomaxorka)) diff --git a/admin/admin_attach_cp.php b/admin/admin_attach_cp.php index 9527fee3a..8dbb64787 100644 --- a/admin/admin_attach_cp.php +++ b/admin/admin_attach_cp.php @@ -441,7 +441,7 @@ if ($view === 'attachments') { $hidden_field = ''; $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']),