Fixes slight oversight.
This commit is contained in:
parent
d751ded0d4
commit
5a51ea77d6
1 changed files with 2 additions and 2 deletions
|
@ -168,13 +168,13 @@ function perms_get_role_raw(int $role): array
|
||||||
return $emptyPerms;
|
return $emptyPerms;
|
||||||
}
|
}
|
||||||
|
|
||||||
$getPerms = Database::connection()->prepare("
|
$getPerms = Database::connection()->prepare('
|
||||||
SELECT
|
SELECT
|
||||||
`' . implode('`, `', perms_get_keys()) . '`
|
`' . implode('`, `', perms_get_keys()) . '`
|
||||||
FROM `msz_permissions`
|
FROM `msz_permissions`
|
||||||
WHERE `user_id` IS NULL
|
WHERE `user_id` IS NULL
|
||||||
AND `role_id` = :role_id
|
AND `role_id` = :role_id
|
||||||
");
|
');
|
||||||
$getPerms->bindValue('role_id', $role);
|
$getPerms->bindValue('role_id', $role);
|
||||||
|
|
||||||
if (!$getPerms->execute()) {
|
if (!$getPerms->execute()) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue