diff --git a/lib/userinfo.php b/lib/userinfo.php index 660804b..8d63990 100644 --- a/lib/userinfo.php +++ b/lib/userinfo.php @@ -90,10 +90,10 @@ function isManagerOf($m, $e) { $resp = json_decode($response->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; } } diff --git a/required.php b/required.php index 3f584ac..1fa5faf 100644 --- a/required.php +++ b/required.php @@ -82,7 +82,7 @@ function sendError($error) { . "

A fatal application error has occurred.

" . "(This isn't your fault.)" . "

Details:

" - . "

". htmlspecialchars($error) . "

"); + . "

" . htmlspecialchars($error) . "

"); } date_default_timezone_set(TIMEZONE);