mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 05:50:42 +02:00
[ticket/14402] Do not expect user id and ip to be available in cron
PHPBB3-14402
This commit is contained in:
@@ -90,7 +90,9 @@ class tidy_plupload extends \phpbb\cron\task\base
|
||||
}
|
||||
catch (\UnexpectedValueException $e)
|
||||
{
|
||||
$phpbb_log->add('critical', $user->data['user_id'], $user->ip, 'LOG_PLUPLOAD_TIDY_FAILED', false, array(
|
||||
$user_id = (empty($user->data)) ? ANONYMOUS : $user->data['user_id'];
|
||||
$user_ip = (empty($user->ip)) ? '' : $user->ip;
|
||||
$phpbb_log->add('critical', $user_id, $user_ip, 'LOG_PLUPLOAD_TIDY_FAILED', false, array(
|
||||
$this->plupload_upload_path,
|
||||
$e->getMessage(),
|
||||
$e->getTraceAsString()
|
||||
|
Reference in New Issue
Block a user