mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-23 22:55:46 -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);
|
$thanks_count = count($cached_thanks);
|
||||||
if ($thanks_count > $tor_thank_limit_per_topic) {
|
if ($thanks_count > $tor_thank_limit_per_topic) {
|
||||||
$oldest_user_id = null;
|
$oldest_user_id = null;
|
||||||
foreach ($cached_thanks as $user_id) {
|
foreach ($cached_thanks as $user_id => $thanks_data) {
|
||||||
$oldest_user_id = $user_id;
|
// First value
|
||||||
|
$oldest_user_id = $thanks_data['user_id'];
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue