From 67009848c344abba1a8712c1631f61da758815a8 Mon Sep 17 00:00:00 2001 From: tripathyr Date: Thu, 11 Nov 2021 13:30:30 +0530 Subject: [PATCH] Update functions.php --- includes/functions.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/includes/functions.php b/includes/functions.php index dae7da2..be2e078 100644 --- a/includes/functions.php +++ b/includes/functions.php @@ -11,10 +11,10 @@ function redirect_to($url=null) { } function checkLoginStatus() { - if($_SESSION['authenticated'] != true) { - return false; + if($_SESSION['authenticated'] == true) { + return true; } - return true; + return false; } function extract_int($string) {