Fix Some errors

Fix Input-Fields (not all fixed <3 pls dome)
This commit is contained in:
Maurice Grönwoldt 2020-11-17 22:34:04 +01:00
commit a34201ffc2
6 changed files with 308 additions and 134 deletions

View file

@ -29,7 +29,7 @@ class User
if (isset($_SESSION['userID']) || $this->username !== 'GUEST') {
// try to load user from id!
$user = DatabaseHandler::get()->getOne("SELECT * FROM users WHERE id = :id OR username = :name AND isActive = 1", [
':id' => $_SESSION['userID'],
':id' => $_SESSION['userID'] ?? -1,
':name' => $this->username
]);
if ($user !== null) {