Merge pull request #8060 from atm-maxime/fix_blockaedlog_migration

Fix blockedlog triggers fatal error in migration script
This commit is contained in:
Laurent Destailleur 2018-01-15 11:34:48 +01:00 committed by GitHub
commit 926f39fc2b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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