mirror of
https://github.com/WerySkok/nativegallery.git
synced 2024-12-22 08:30:59 +03:00
off comments if photo on moderation
This commit is contained in:
parent
0c14aeb391
commit
8e39134df6
1 changed files with 2 additions and 0 deletions
|
@ -314,6 +314,7 @@ if ($photo->i('id') !== null) {
|
|||
<?php } ?>
|
||||
|
||||
<?php
|
||||
if ($photo->i('moderated') > 0) {
|
||||
$comments = DB::query('SELECT * FROM photos_comments WHERE photo_id=:pid', array(':pid' => $id));
|
||||
?>
|
||||
<div class="p0" id="pp-item-comments">
|
||||
|
@ -343,6 +344,7 @@ if ($photo->i('id') !== null) {
|
|||
|
||||
</div>
|
||||
</div>
|
||||
<?php } ?>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
|
|
Loading…
Reference in a new issue