Fix blockedlog triggers fatal error in migration script

This commit is contained in:
Maxime Kohlhaas 2018-01-14 11:56:45 +01:00
parent f0d6099e5f
commit 36afa87fb5

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