From af6ff88f0dd240cafbe7e8bd61ba4defd789ceaf Mon Sep 17 00:00:00 2001 From: Olav Morken <olav.morken@uninett.no> Date: Mon, 27 Oct 2008 13:51:33 +0000 Subject: [PATCH] XML/Validator: Fix warning. git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@948 44740490-163a-0410-bde0-09ae8108e29a --- lib/SimpleSAML/XML/Validator.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/SimpleSAML/XML/Validator.php b/lib/SimpleSAML/XML/Validator.php index ddd404b28..fef30bddb 100644 --- a/lib/SimpleSAML/XML/Validator.php +++ b/lib/SimpleSAML/XML/Validator.php @@ -86,7 +86,7 @@ class SimpleSAML_XML_Validator { } /* Load the key data. */ - if (array_key_exists('PEM', $publickey)) { + if ($publickey !== FALSE && array_key_exists('PEM', $publickey)) { /* We have PEM data for the public key / certificate. */ $objKey->loadKey($publickey['PEM']); } else { -- GitLab