summaryrefslogtreecommitdiff
path: root/api
diff options
context:
space:
mode:
authorwn_ <[email protected]>2024-07-11 12:14:53 +0000
committerwn_ <[email protected]>2024-07-11 12:16:00 +0000
commitc7cc3c92baae4b34438819fa66d971edc50faaaa (patch)
tree55f5bf8f728e6b560f4a3524e8f4772e20ddc9b9 /api
parentacf3748621f37251a4eeb3f62d771ef91bcf5233 (diff)
Add and use the 'Sessions' class.
Diffstat (limited to 'api')
-rw-r--r--api/index.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/api/index.php b/api/index.php
index a061e8020..c468823e1 100644
--- a/api/index.php
+++ b/api/index.php
@@ -30,7 +30,7 @@
if (!init_plugins()) return;
if (!empty($_SESSION["uid"])) {
- if (!\Sessions\validate_session()) {
+ if (!Sessions::validate_session()) {
header("Content-Type: text/json");
print json_encode([