Fix key creation

This commit is contained in:
Jacob 2023-10-01 22:50:12 +02:00
parent 418f6698e6
commit 17516d5174

View file

@ -54,6 +54,7 @@ if ($adminExists != 1) {
$primary = 0;
}
$DatabaseQuery = $Database->query('SELECT * FROM admins');
while ($line = $DatabaseQuery->fetchArray()) {
if ($line['key'] == $_COOKIE[$cookieName] && $_COOKIE[$cookieName] != "" && $line['key'] != "" && ($enableKeys || $enableKeys == "true")) {
$AuthorizedCreation = 1;