diff --git a/classes/class-PBS-LAAS-client.php b/classes/class-PBS-LAAS-client.php index 543468e..38feb6e 100644 --- a/classes/class-PBS-LAAS-client.php +++ b/classes/class-PBS-LAAS-client.php @@ -385,7 +385,7 @@ private function retrieve_encrypted_tokeninfo() { } // decrypt encrypted tokeninfo - $decrypted = $this->decrypt($tokeninfo); + $decrypted = !empty($tokeninfo) ? $this->decrypt($tokeninfo) : false; if ($decrypted) { $tokeninfo = $decrypted; }