From c7cc3c92baae4b34438819fa66d971edc50faaaa Mon Sep 17 00:00:00 2001 From: wn_ Date: Thu, 11 Jul 2024 12:14:53 +0000 Subject: Add and use the 'Sessions' class. --- backend.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'backend.php') 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); -- cgit v1.2.3