Update DBEntity.updated.php

This commit is contained in:
n1rwana 2023-08-03 17:15:07 +03:00
parent fab54f37c8
commit 6b8477ed01

View file

@ -105,8 +105,8 @@ abstract class DBEntity
function save(?bool $log = true): void function save(?bool $log = true): void
{ {
if ($log) { if ($log) {
$user = CurrentUser::i()->getUser(); $user = CurrentUser::i();
$user_id = is_null($user) ? (int)OPENVK_ROOT_CONF["openvk"]["preferences"]["support"]["adminAccount"] : $user->getId(); $user_id = is_null($user) ? (int)OPENVK_ROOT_CONF["openvk"]["preferences"]["support"]["adminAccount"] : $user->getUser()->getId();
} }
if(is_null($this->record)) { if(is_null($this->record)) {