From 0998a72d1209ce7c0edf1dbaa3069640bf11f64d Mon Sep 17 00:00:00 2001 From: William Tam Date: Mon, 10 Apr 2023 15:30:38 +0000 Subject: [PATCH] check for falsity before passing var --- classes/class-PBS-LAAS-client.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }