mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-23 14:45:43 -07:00
Update thanks.php
This commit is contained in:
parent
61ffff31e2
commit
91c6bbd4de
1 changed files with 3 additions and 2 deletions
|
@ -95,8 +95,9 @@ switch ($mode) {
|
|||
$thanks_count = count($cached_thanks);
|
||||
if ($thanks_count > $tor_thank_limit_per_topic) {
|
||||
$oldest_user_id = null;
|
||||
foreach ($cached_thanks as $user_id) {
|
||||
$oldest_user_id = $user_id;
|
||||
foreach ($cached_thanks as $user_id => $thanks_data) {
|
||||
// First value
|
||||
$oldest_user_id = $thanks_data['user_id'];
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue