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) {