Skip to content

Commit

Permalink
Update WallPresenter.php
Browse files Browse the repository at this point in the history
  • Loading branch information
tretdm committed Oct 25, 2023
1 parent 49a7047 commit 158f193
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Web/Presenters/WallPresenter.php
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ function renderMakePost(int $wall): void
foreach($photos as $photo)
$post->attach($photo);

if($videos->count() > 0)
if($videos->getRowCount() > 0)
foreach($videos as $vid)
$post->attach($vid);

Expand Down

0 comments on commit 158f193

Please sign in to comment.