Fixes slight oversight.

This commit is contained in:
flash 2018-07-08 21:29:18 +02:00
parent d751ded0d4
commit 5a51ea77d6

View file

@ -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()) {