Skip to content
Snippets Groups Projects
Commit eb715465 authored by Demian Katz's avatar Demian Katz Committed by André Lahmann
Browse files

Corrected false checks to null.

parent 89ff8c4d
No related merge requests found
......@@ -144,7 +144,7 @@ class ServerParam implements PermissionProviderInterface,
// server param values to check
$serverParamString = $this->request->getServer()->get($serverParamName);
if ($serverParamString === false) {
if ($serverParamString === null) {
// check fails if server param is missing
return false;
}
......
......@@ -74,7 +74,7 @@ class Shibboleth extends ServerParam
*/
public function getPermissions($options)
{
if ($this->request->getServer()->get('Shib-Identity-Provider') === false) {
if ($this->request->getServer()->get('Shib-Identity-Provider') === null) {
$this->logWarning('getPermissions: Shibboleth server params missing');
return [];
......
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