mirror of
https://github.com/openvk/openvk
synced 2025-04-23 08:33:02 +03:00
php 8.2 fixxxxxxxxxxxxxxxxxxxxxxx
This commit is contained in:
parent
6f3de576a8
commit
a4583c6b22
1 changed files with 2 additions and 2 deletions
|
@ -174,7 +174,7 @@ abstract class MediaCollection extends RowModel
|
||||||
return !is_null($rel);
|
return !is_null($rel);
|
||||||
}
|
}
|
||||||
|
|
||||||
function save(): void
|
function save(?bool $log = false): void
|
||||||
{
|
{
|
||||||
$thisTable = DatabaseConnection::i()->getContext()->table($this->tableName);
|
$thisTable = DatabaseConnection::i()->getContext()->table($this->tableName);
|
||||||
if(self::MAX_COUNT != INF)
|
if(self::MAX_COUNT != INF)
|
||||||
|
@ -188,7 +188,7 @@ abstract class MediaCollection extends RowModel
|
||||||
else
|
else
|
||||||
$this->stateChanges("edited", time());
|
$this->stateChanges("edited", time());
|
||||||
|
|
||||||
parent::save();
|
parent::save($log);
|
||||||
}
|
}
|
||||||
|
|
||||||
function delete(bool $softly = true): void
|
function delete(bool $softly = true): void
|
||||||
|
|
Loading…
Reference in a new issue