mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
[ticket/14492] Always update the time the stats were sent
PHPBB3-14492
This commit is contained in:
parent
c54838b25f
commit
15f433f00f
1 changed files with 2 additions and 5 deletions
|
@ -86,15 +86,12 @@ class acp_help_phpbb
|
||||||
$config->set('help_send_statistics', $request->variable('help_send_statistics', false));
|
$config->set('help_send_statistics', $request->variable('help_send_statistics', false));
|
||||||
$response = $request->variable('send_statistics_response', '');
|
$response = $request->variable('send_statistics_response', '');
|
||||||
|
|
||||||
|
$config->set('help_send_statistics_time', time());
|
||||||
|
|
||||||
if (!empty($response))
|
if (!empty($response))
|
||||||
{
|
{
|
||||||
if ((strpos($response, 'Thank you') !== false || strpos($response, 'Flood protection') !== false))
|
if ((strpos($response, 'Thank you') !== false || strpos($response, 'Flood protection') !== false))
|
||||||
{
|
{
|
||||||
// Update time when statistics were actually sent
|
|
||||||
if (strpos($response, 'Thank you') !== false)
|
|
||||||
{
|
|
||||||
$config->set('help_send_statistics_time', time());
|
|
||||||
}
|
|
||||||
trigger_error($user->lang('THANKS_SEND_STATISTICS') . adm_back_link($this->u_action));
|
trigger_error($user->lang('THANKS_SEND_STATISTICS') . adm_back_link($this->u_action));
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
Loading…
Add table
Reference in a new issue