Return $this->publicKey if it's available in getPublicKey() function

This commit is contained in:
terrafrost 2012-10-22 00:27:26 -05:00
parent bdd42c448b
commit 9e803fe374

View File

@ -2315,6 +2315,10 @@ class File_X509 {
*/
function getPublicKey()
{
if (isset($this->publicKey)) {
return $this->publicKey;
}
if (!isset($this->currentCert) || !is_array($this->currentCert) || !isset($this->currentCert['tbsCertificate'])) {
return false;
}