Fix key creation
This commit is contained in:
parent
418f6698e6
commit
17516d5174
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue