diff --git a/views/pages/Main.php b/views/pages/Main.php index 746d110..eabef7d 100644 --- a/views/pages/Main.php +++ b/views/pages/Main.php @@ -98,7 +98,7 @@ foreach ($photos as $pd) {
- Количество ваших фотографий на сайте: =DB::query('SELECT COUNT(*) FROM photos WHERE user_id=:uid', array(':uid'=>Auth::userid()))[0]['COUNT(*)']?>
+ Количество ваших фотографий на сайте: =DB::query('SELECT COUNT(*) FROM photos WHERE user_id=:uid AND moderated=1', array(':uid'=>Auth::userid()))[0]['COUNT(*)']?>
Текущее значение индекса загрузки: =$user->i('uploadindex')?>
diff --git a/views/pages/Search.php b/views/pages/Search.php index dc6c743..1559f41 100644 --- a/views/pages/Search.php +++ b/views/pages/Search.php @@ -19,9 +19,9 @@ use App\Services\{Router, Auth, DB, Date};