Fix Models\Attachment

This commit is contained in:
Visman 2023-07-10 00:20:33 +07:00
parent ca04b877f4
commit 2c3cc72d9d

View file

@ -136,7 +136,7 @@ class Attachments extends Manager
$table = $post instanceof PPost ? '::attachments_pos_pm' : '::attachments_pos';
if (empty($attInPost)) {
if (true === $ditPost) {
if (true === $editPost) {
$vars = [
':pid' => $post->id
];