Update WallPresenter.php

This commit is contained in:
Dmitry Tretyakov 2023-10-25 16:45:21 +07:00
parent 49a7047773
commit 158f1938bb

View file

@ -332,7 +332,7 @@ final class WallPresenter extends OpenVKPresenter
foreach($photos as $photo) foreach($photos as $photo)
$post->attach($photo); $post->attach($photo);
if($videos->count() > 0) if($videos->getRowCount() > 0)
foreach($videos as $vid) foreach($videos as $vid)
$post->attach($vid); $post->attach($vid);