diff --git a/Web/Presenters/WallPresenter.php b/Web/Presenters/WallPresenter.php index f7928db8..5309b33b 100644 --- a/Web/Presenters/WallPresenter.php +++ b/Web/Presenters/WallPresenter.php @@ -332,7 +332,7 @@ final class WallPresenter extends OpenVKPresenter foreach($photos as $photo) $post->attach($photo); - if($videos->count() > 0) + if($videos->getRowCount() > 0) foreach($videos as $vid) $post->attach($vid);