Fix blockedlog triggers fatal error in migration script
This commit is contained in:
parent
f0d6099e5f
commit
36afa87fb5
@ -349,8 +349,11 @@ class BlockedLog
|
||||
}
|
||||
|
||||
// Add user info
|
||||
$this->fk_user = $user->id;
|
||||
$this->user_fullname = $user->getFullName($langs);
|
||||
if (! empty($user))
|
||||
{
|
||||
$this->fk_user = $user->id;
|
||||
$this->user_fullname = $user->getFullName($langs);
|
||||
}
|
||||
|
||||
// Field specific to object
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user