mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-06 18:21:39 +09:00
Prevent member_count_history from becoming too large
This commit is contained in:
parent
75a8184e59
commit
59115fd028
1 changed files with 4 additions and 0 deletions
|
|
@ -714,6 +714,10 @@ class Member extends ModuleObject
|
|||
{
|
||||
//update
|
||||
$content = unserialize($output->data->content);
|
||||
if (is_array($content) && count($content) >= 250)
|
||||
{
|
||||
$content = array_slice($content, -200);
|
||||
}
|
||||
$content[] = array(\RX_CLIENT_IP, lang($message), \RX_TIME);
|
||||
$args->content = serialize($content);
|
||||
$output = executeQuery('member.updateLoginCountHistoryByMemberSrl', $args);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue