off comments if photo on moderation

This commit is contained in:
themohooks 2024-07-19 01:01:03 +03:00
parent 0c14aeb391
commit 8e39134df6

View file

@ -314,6 +314,7 @@ if ($photo->i('id') !== null) {
<?php } ?> <?php } ?>
<?php <?php
if ($photo->i('moderated') > 0) {
$comments = DB::query('SELECT * FROM photos_comments WHERE photo_id=:pid', array(':pid' => $id)); $comments = DB::query('SELECT * FROM photos_comments WHERE photo_id=:pid', array(':pid' => $id));
?> ?>
<div class="p0" id="pp-item-comments"> <div class="p0" id="pp-item-comments">
@ -343,6 +344,7 @@ if ($photo->i('id') !== null) {
</div> </div>
</div> </div>
<?php } ?>
</td> </td>
</tr> </tr>
</tbody> </tbody>