Merge pull request #8060 from atm-maxime/fix_blockaedlog_migration
Fix blockedlog triggers fatal error in migration script
This commit is contained in:
commit
926f39fc2b
@ -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