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.''; +} ?>