clean up usages of $UserID

This commit is contained in:
Quetzal
2020-03-27 15:29:46 +00:00
parent f1cf996239
commit 91fa51bbed
9 changed files with 17 additions and 19 deletions
-2
View File
@@ -148,8 +148,6 @@ if (isset($LoginCookie)) {
list($SessionID, $LoggedUser['ID']) = explode('|~|', Crypto::decrypt($LoginCookie, ENCKEY));
$LoggedUser['ID'] = (int)$LoggedUser['ID'];
$UserID = $LoggedUser['ID']; // TODO: convert all usages of this shit to $LoggedUser['ID'].
if (!$LoggedUser['ID'] || !$SessionID) {
logout($LoggedUser['ID'], $SessionID);
}