mirror of
https://github.com/itflow-org/itflow
synced 2026-02-28 02:44:53 +00:00
Only show notifications belonging to the logged in user and system notifications where notification_user_id = 0
This commit is contained in:
@@ -84,7 +84,7 @@ if ($iPod || $iPhone || $iPad) {
|
||||
}
|
||||
|
||||
//Get Notification Count for the badge on the top nav
|
||||
$row = mysqli_fetch_assoc(mysqli_query($mysqli,"SELECT COUNT('notification_id') AS num FROM notifications WHERE notification_dismissed_at IS NULL AND company_id = $session_company_id"));
|
||||
$row = mysqli_fetch_assoc(mysqli_query($mysqli,"SELECT COUNT('notification_id') AS num FROM notifications WHERE (notification_user_id = $session_user_id OR notification_user_id = 0) AND notification_dismissed_at IS NULL AND company_id = $session_company_id"));
|
||||
$num_notifications = $row['num'];
|
||||
|
||||
//Set Currency Format
|
||||
|
||||
Reference in New Issue
Block a user