diff --git a/views/pages/Photo.php b/views/pages/Photo.php
index cac13cd..e0bc59e 100644
--- a/views/pages/Photo.php
+++ b/views/pages/Photo.php
@@ -83,10 +83,10 @@ if ($photo->i('id') !== null) {
';
}
if ($photo->i('moderated') === 2 && $moderated === true) {
- echo '
+ echo '
Фотография не принята к публикации
-'.$photo->declineReason($photo->content('declineReason')).'
+'.$photo->declineReason($photo->content('declineReason')).'
';
}
?>
@@ -186,7 +186,7 @@ if ($photo->i('id') !== null) {
-
+ i('moderated') === 1) { ?>
@@ -234,6 +234,7 @@ if ($photo->i('id') !== null) {
+
@@ -321,7 +322,7 @@ if ($photo->i('id') !== null) {
i('moderated') > 0) {
+ if ($photo->i('moderated') === 1) {
$comments = DB::query('SELECT * FROM photos_comments WHERE photo_id=:pid', array(':pid' => $id));
?>