diff --git a/www/saml2/sp/initSSO.php b/www/saml2/sp/initSSO.php
index 075a1656dd626a8c3e0132484f1b940adbceecd5..db63076cb0b565cb9f484d628e6c396d96fb2fc2 100644
--- a/www/saml2/sp/initSSO.php
+++ b/www/saml2/sp/initSSO.php
@@ -42,7 +42,7 @@ try {
 /*
  * If no IdP can be resolved, send the user to the SAML 2.0 Discovery Service
  */
-if ($idpentityid == null) {
+if ($idpentityid === NULL) {
 
 	SimpleSAML_Logger::info('SAML2.0 - SP.initSSO: No chosen or default IdP, go to SAML2disco');