Commit cd6cd737 authored by anarcat's avatar anarcat Committed by anarcat

fix typo in provision_posix_groupname() (was checking a non-existent $user)

parent d310fc27
......@@ -344,7 +344,7 @@ function provision_posix_username($user) {
function provision_posix_groupname($group) {
// TODO: make these singletons with static variables for caching.
// we do this both ways, so that the function returns NULL if no such user was found.
if (is_numeric($user)) {
if (is_numeric($group)) {
$info = posix_getgrgid($group);
$group = $info['name'];
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment