mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-29 06:38:52 +00:00
[ticket/14402] Do not expect user id and ip to be available in cron
PHPBB3-14402
This commit is contained in:
parent
97e002cc3d
commit
3a82ace3eb
1 changed files with 3 additions and 1 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Reference in a new issue