diff --git a/DBEntity.updated.php b/DBEntity.updated.php index 52e17043..5414a2e9 100644 --- a/DBEntity.updated.php +++ b/DBEntity.updated.php @@ -105,8 +105,8 @@ abstract class DBEntity function save(?bool $log = true): void { if ($log) { - $user = CurrentUser::i()->getUser(); - $user_id = is_null($user) ? (int)OPENVK_ROOT_CONF["openvk"]["preferences"]["support"]["adminAccount"] : $user->getId(); + $user = CurrentUser::i(); + $user_id = is_null($user) ? (int)OPENVK_ROOT_CONF["openvk"]["preferences"]["support"]["adminAccount"] : $user->getUser()->getId(); } if(is_null($this->record)) {