From 40c53bf0fb47d4a3259adc3f66b53e6a959be250 Mon Sep 17 00:00:00 2001 From: themohooks <81331307+themohooks@users.noreply.github.com> Date: Fri, 12 Jul 2024 00:35:52 +0300 Subject: [PATCH] fix comments count --- views/pages/Photo.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/views/pages/Photo.php b/views/pages/Photo.php index d5fb3d0..af0df84 100644 --- a/views/pages/Photo.php +++ b/views/pages/Photo.php @@ -294,12 +294,14 @@ if ($photo->i('id') !== null) { - + $id)); + ?>
-

Комментарии · 1

+

Комментарии ·

$id)); + foreach ($comments as $c) { $comm = new Comment($c); $comm->i();