Skip to content

Commit

Permalink
added a line break in the logout methd
Browse files Browse the repository at this point in the history
  • Loading branch information
okoibraun committed May 30, 2022
1 parent c2a8968 commit 350bba7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions classes/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ public function login($conn, $query) {
* @param string check if the action to be perform to know if it equal to logout
*/
public function logout($action, $check) {

if(isset($action) && $action == "logout" && isset($check) && $check == "true") {
for($i=0; $i<=count($_SESSION); $i++) {
$_SESSION[$i] = "";
Expand Down

0 comments on commit 350bba7

Please sign in to comment.