From 428f47142a65cb942761cf201e051b80e1716904 Mon Sep 17 00:00:00 2001 From: themohooks <81331307+themohooks@users.noreply.github.com> Date: Sat, 20 Jul 2024 23:54:28 +0300 Subject: [PATCH] Update Navbar.php --- views/components/Navbar.php | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/views/components/Navbar.php b/views/components/Navbar.php index 5ebf5f0..6362a7c 100644 --- a/views/components/Navbar.php +++ b/views/components/Navbar.php @@ -18,6 +18,11 @@ if (NGALLERY['root']['title'] != null && NGALLERY['root']['showtitle'] === true) } else { $title = 'NativeGallery'; } + +$noncheckedimgs = DB::query('SELECT COUNT(*) FROM followers_notifications WHERE checked=0 AND follower_id=:id', array(':id'=>Auth::userid()))[0]['COUNT(*)']; +if ($noncheckedimgs > 0) { + $nonrw = ''.$noncheckedimgs.''; +} ?> @@ -39,12 +44,12 @@ if (NGALLERY['root']['title'] != null && NGALLERY['root']['showtitle'] === true)
  • Комментарии
  • -
  • Обновления +
  • Обновления