Rewriting classes for de-oopsie-ing

This commit is contained in:
Michał Gdula 2022-10-06 12:06:14 +00:00
parent 7f1782d7c6
commit 646b41e90a
7 changed files with 42 additions and 20 deletions

View file

@ -5,7 +5,7 @@
$user_info = new Account();
// Check if user is logged in
if (!$user_info->is_loggedin()) {
if (!$user_info->is_loggedin($conn)) {
$_SESSION['err'] = "You must be logged in to upload images!!!!!!!!";
header("location: account.php");
}