aboutsummaryrefslogtreecommitdiff
path: root/backend.php
diff options
context:
space:
mode:
authorwn_ <invalid@email.com>2024-07-11 12:14:53 +0000
committerwn_ <invalid@email.com>2024-07-11 12:16:00 +0000
commitc7cc3c92baae4b34438819fa66d971edc50faaaa (patch)
tree55f5bf8f728e6b560f4a3524e8f4772e20ddc9b9 /backend.php
parentacf3748621f37251a4eeb3f62d771ef91bcf5233 (diff)
Add and use the 'Sessions' class.
Diffstat (limited to 'backend.php')
-rw-r--r--backend.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/backend.php b/backend.php
index 14d461c9f..a56847111 100644
--- a/backend.php
+++ b/backend.php
@@ -44,7 +44,7 @@
}
if (!empty($_SESSION["uid"])) {
- if (!\Sessions\validate_session()) {
+ if (!Sessions::validate_session()) {
header("Content-Type: text/json");
print Errors::to_json(Errors::E_UNAUTHORIZED);