Skip to content
Snippets Groups Projects
Commit 620a89bf authored by Muhammad Rifko Favian's avatar Muhammad Rifko Favian
Browse files

fix: get user

parent 04f63c17
Branches
Tags
No related merge requests found
...@@ -160,13 +160,14 @@ class UserController { ...@@ -160,13 +160,14 @@ class UserController {
ob_end_flush(); ob_end_flush();
} }
} }
if (isset($_GET['userAction'])) { if (isset($_GET['userAction'])) {
if ($_GET['userAction'] === 'getUser') { if ($_GET['userAction'] === 'getUser') {
unset($_GET['userAction']); unset($_GET['userAction']);
echo json_encode($this->getUser($_SESSION['user_id'])); session_start();
echo json_encode($this->getUser($_SESSION['user_id']));
}
} }
} }
}
} }
?> ?>
\ No newline at end of file
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment