mirror of
https://github.com/openvk/openvk
synced 2024-11-14 19:19:14 +03:00
Update DBEntity.updated.php
This commit is contained in:
parent
fab54f37c8
commit
6b8477ed01
1 changed files with 2 additions and 2 deletions
|
@ -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)) {
|
||||
|
|
Loading…
Reference in a new issue