Frozen users cant chat with other people

This commit is contained in:
Lars van Hijfte
2017-01-31 14:26:34 +01:00
parent 2dd7dd8140
commit 164eb2dde6
7 changed files with 40 additions and 17 deletions

View File

@@ -9,7 +9,7 @@ function updateLastActivity() {
SET
`lastactivity` = NOW()
WHERE
`userID` = :userID
`userID` = :userID
");
$stmt->bindParam(":userID", $_SESSION["userID"]);
return $stmt->execute();
@@ -417,5 +417,5 @@ function getRoleByID($userID) {
$stmt->bindParam(':userID', $userID);
$stmt->execute();
return $stmt;
return $stmt->fetch()["role"];
}