diff --git a/Web/Presenters/WallPresenter.php b/Web/Presenters/WallPresenter.php index e1937d74..d89b722a 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->getRowCount() > 0) + if(sizeof($videos) > 0) foreach($videos as $vid) $post->attach($vid);