From 6d1587471c49f43bf18f4c896f9c22340e2b6c37 Mon Sep 17 00:00:00 2001 From: Dmitry Tretyakov <76806170+tretdm@users.noreply.github.com> Date: Wed, 25 Oct 2023 18:23:34 +0700 Subject: [PATCH] Update WallPresenter.php --- Web/Presenters/WallPresenter.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Web/Presenters/WallPresenter.php b/Web/Presenters/WallPresenter.php index e1937d745..d89b722a4 100644 --- a/Web/Presenters/WallPresenter.php +++ b/Web/Presenters/WallPresenter.php @@ -332,7 +332,7 @@ function renderMakePost(int $wall): void foreach($photos as $photo) $post->attach($photo); - if($videos->getRowCount() > 0) + if(sizeof($videos) > 0) foreach($videos as $vid) $post->attach($vid);