From 761bc9a441c1142ee52f2a1a3e83727790fb7235 Mon Sep 17 00:00:00 2001 From: kapsona777 Date: Mon, 28 Oct 2024 13:49:44 +0400 Subject: [PATCH] fix --- public/userarea/apilogic/process_import.php | 3 +++ public/userarea/include/topbar.php | 4 +++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/public/userarea/apilogic/process_import.php b/public/userarea/apilogic/process_import.php index 03c6c0f..224c5bd 100644 --- a/public/userarea/apilogic/process_import.php +++ b/public/userarea/apilogic/process_import.php @@ -417,4 +417,7 @@ function markForIntervention($id, $pdo) $stmt->execute(['id' => $id]); $query = "INSERT INTO notifications (`title`,`description`) VALUES ('Intervention Required', 'Intervention required for JSON entry with ID $id')"; + $stmt = $pdo->prepare($query); + $stmt->execute(); + } diff --git a/public/userarea/include/topbar.php b/public/userarea/include/topbar.php index 9ab82f4..996b51b 100644 --- a/public/userarea/include/topbar.php +++ b/public/userarea/include/topbar.php @@ -317,7 +317,9 @@ for(var i=0; i -
+
+ +

${unseen_notifications[i]['title']}${unseen_notifications[i]['description']}

`);