diff --git a/lib/userinfo.php b/lib/userinfo.php index 7db54c5..22f41ac 100644 --- a/lib/userinfo.php +++ b/lib/userinfo.php @@ -1,4 +1,5 @@ getBody(), TRUE); if ($resp['status'] == "OK") { - return $resp['managerof']; + return $resp['managerof'] === true; } else { // this shouldn't happen, but in case it does just fake it. - return ["name" => $u, "username" => $u, "uid" => $u]; + return false; } } @@ -119,4 +120,4 @@ function getManagedUIDs($manageruid) { } else { return []; } -} \ No newline at end of file +}